Quantcast
Channel: SQL Server Integration Services forum
Viewing all 24688 articles
Browse latest View live

DT_Date | DT_DBDate | DT_DBTime | DT_DBTime2 | DT_DBTimeStamp | DT_DBTImeStamp2

$
0
0

HI,

Out of the following datatypes, which are comparable to SQL Server's DateTime & Time data types. 

DT_Date | DT_DBDate |  DT_DBTime | DT_DBTime2 | DT_DBTimeStamp | DT_DBTImeStamp2

I am not sure how these date/time data types compare with T-SQL datatypes. Is there some reference that I can refer to which compares SSIS date/time (or all) datatypes with T-SQL datatypes?

Thank you


SQL Agent doesnt reposnd to execute process task with Putty PSFTP Commands

$
0
0

Hi All,

I have developed an ssis package to download  files from a remote server with Putty PSSFTP batch file as   c:\putty\psftp.exe    test@abc.com -i PrivateKey.ppk -batch  -b   myscript.scr

,everything works fine with BIDS ,but SQL Agent doesnt respond to PSFTP batch commands and indicates as success without downloading the files,i have followed previous posts and  included the password for the package and rescheduled it and it also fails to import files,my sqlagent  account is a sysadmin .

Is I'm missing something or there any existing issues with ssis and psftp.

Many Thanks


I have a complex task in my project level ? I.E

$
0
0

i have two accounts one is fianl accounat and terimenated account,ABC account is my table name,The ABC account table contain the columns like status(pendingfinal,final,terminated, location,start-date,end-date,ABC account number)

so my conditions here

1.if ABC account end date=0,then send mail to the list of users  &&    insert &update the information of the users  before sending to the mail-that information maintain in a one table.

2.if ABC account end date#0 then we have check two conditons here I)if that product is simple product then it will send a mail to the users and updated the infomation and store  in one table  II)if that product is complex then it will check the one more condition.i.e end-date=getdate-180 days and then send mail to the users to this infomation ,finally updated the infomation in one table

these stups are maintain a flow we can maintain a relation of these stups

These are my conditions in my requirement so can some one tell me the stups and how to implement these stups in ssis can tell me the picture representation

can some one tell me the exact way as earliest........

Thanks Advance

Regards

Excel to Table load. Please help!

$
0
0

Hi,

I am loading data from a Excel into a table.

In Excel, there are two columns. They are DateOfBirth and BirthTime .The values are 01/30/2000 and 14:03 respectively.

In the Target DB table, the column names and datatypes are [DateOfBirth] date, [BirthTime] time.


The problem is, after loading , the data is in table is coming as 2000-30-01 and 14:03:00000 .

Can you please tell me how can  i change this value to 01/30/2000 and 14:03 - to look like almost like source excel.

In time, some values are like 3:10:00000 - so i cant go for LEFT function also. If I use LEFT, 16:10:0000 is coming as correctly, but 6:10:0000 is becoming NULL.

Pls help!

Thanks
Revathy




Derived Column - DT_STR to DT_Decimal

$
0
0

HI,

I have a column Score, which comes with in 100% or 100.00% etc. 

Now if the someone puts "One hundred %" instead of one of the above two, I want to fail the task. I am trying to figure out derived column scenario and trying to convert DT_STR (source "Score" datatype) into DT_Decimal (destination "Score%" datatype).

When I use the following expression

(ISNULL((DT_STR, 7, 1252)([Score])) || TRIM((DT_STR, 7, 1252)([Score])) == "") ? NULL(DT_DECIMAL,2) : (DT_DECIMAL,2) (REPLACE((DT_STR, 7, 1252)([Score]), "%", ""))


, my final datatype is of numeric...I want it to be decimal.

Where am I screwing this up? I think by getting this working, if someone puts invalid value for Score, it will fail the component/pkg as you cannot convert text to decimal.

Thank you

P.S. Do I need to have "Scale" defined while converting to DT_Decimal? I am putting 7 character limit so 100.00% will convert to 100.00.

Editing SSIS package and replacing Password - can it be encrypted?

$
0
0
We have an SSIS package that has a connecton string to to an iSeries DB2 and it needs an entered password. We ship this package (*.dstx in XML) file out to clients with a vb.net utility to enter their iSeries IP, Userid and password information. The vb.net program then edits the dstx file with this information and then starts the Deployment Wizard (might change to DTUTIL, but not sure). But the password is in plain text in the dstx file now. Yes I can remove it after the Wizard is done. But wondering is there a way to encrypt the password in the dstx file, from within vb.net - or really from anywhere? obviously it needs to be encrypted so that either DTUTIL or Deployment Wizard (start the Manifest file) can recognize it.

(DT_DBTIME2, «scale»)

$
0
0

Hi,

I have column with time(7) in DB table. my source column in ssis is set to DT_DBTIME2. 

How do I set up DT_DBTIME2 to = Time(7)? Do I change the scale from 0 to 7 in the source?

Thank you

SSIS 2005 logging to msdb sysdtslog90 table - event column entries for User:

$
0
0

Hi all - a puzzle:

I have many SSIS 2005 packages set up to log to the msdb sysdtslog90 table.  I love it - it's almost effortless and gives you so much detailed info that you can query with SQL.  The only hassle is you have to purge old entries yourself to avoid msdb database growing continually.

Anyway, in the last few months I've noticed in some environments that new entries are being added with a new prefix in the  [event] column: "User:".  For example as well as "OnInformation", I now see "User:OnInformation".

Does anyone know what that "User:" prefix means and where it comes from?  I'm sure it never used to appear - maybe it's related to SP3 or a post SP2 build?

Thanks
Mike  

I've


SSIS ADO.NET ODBC Connection

$
0
0

I am using 2008 R2  when I set up the connection in SSIS and preview the data the connection succeeds and I get data back when I actually run the package in Intelligence Studio I get the following error.  How do I resolve this?

[ADO NET Source [1]] Error: System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)
   at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions)
   at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.Odbc.OdbcConnection.Open()
   at Microsoft.SqlServer.Dts.Runtime.ManagedHelper.GetManagedConnection(String assemblyQualifiedName, String connStr, Object transaction)
   at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager100.AcquireConnection(Object pTransaction)
   at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper100 wrapper, Object transaction)

EDCDIC files to ASCII Conversion through SSIS

$
0
0

Did any one work on Conversion of IBM EBCDIC to ASCII files and move to SQL Server using SSIS package.

If Yes can you please let me know how that is done. I don think there is a direct task available to do such conversion.

Any help or information is of great help on this

Are you any good at SSIS? Win love and recognition! Become a TechNet Guru for July 2013

$
0
0

TechNet Wiki is looking for and celebrating the best of the best!

Is that you? Do you consider yourself an expert, authority, or just pretty good at this technology?

Show us your forum solutions and become MICROSOFT TECHNOLOGY GURU OF THE MONTH!

This is an official Microsoft TechNet recognition programme, where people such as yourselves can get the recognition you deserve, for the time you've given the community.

If you spend any amount of time crafting an awesome answer to a forum question, then why not get the most back for your efforts, by posting it to TechNet Wiki.

1) Please copy over any solutions you post here to TechNet Wiki.

2) Add a link to it on THIS WIKI PAGE, so we know you've contributed

3) Every month, we will highlight your contributions, and select a "Guru of the Month" in each technology.

If you win, we will sing your praises, similar to the weekly contributor awards, however once "on our radar" and making your mark, you will probably be interviewed for your greatness, and eventually even invited into other TechNet/MSDN circles!

Either way, winning this award in your favoured technology can only be good for your career! ;)

Feel free to ask any questions below.

Thanks in advance!
Pete Laker


#PEJL Got a good solution? If you invest your time in coding an elegant/novel or large answer on these MSDN forums, why not copy it over to our belovedTechNet Wiki, for future generations to benefit from!



how to override the excel destination data using ssis?

$
0
0

I created  a package which runs everydays and dumps the data into an excel file.

The problem iam facing is that -today the package runs and fills in the excel file,tomorrow it again runs and fills in the data without deleting the previous records.......

But i want it to delete the records already present and fill in the excel

Step 3: Drop Table

second stup am using excute sql task to create the same excel sheet,

But am getting the same result ,Table is not deleted and not created in the second stup

can some one pls find the problem and resolve as earliest

The external columns for comp

onent "Excel Destination" (28

) are out of synchronization with the data source columns. The external column "SERV_LOCATION_ST" needs to be updated

i GOT THIS WARNING FINALLY ........

SSIS package not getting executed when I use SQL Server Agent. It works fine of I run it through BIDS

$
0
0

Hi all,

I created a simple task that runs an sql query against a SQL Server 2008 database and exports the result set to an excel file that is dynamically created. The package works fine when I run it through BIDS. But when I try to automate the process through SQL Server 2008 Agent. It fails.The error message describes the following "c:/..." is not a  valid path.make sure you the path name is spelled correctly and you are connected to the server on the which the file resides..connection may not be configured correctly or you may not have right permissions on this connection. I have logged into sql server as DBA. Works like a charm in BIDS, but not here. Could anyone let me know how to fix this issue? Please help..Thanks

Multicast Transformation and SSIS Buffer

$
0
0

I am a beginner of SSIS and I would like to understand the SSIS 2008 buffer concept for multicast transformation. If you know any good article please share the link.

I have huge data in DB and I would like to multicast the data in data flow. From different articles, I understood that SQL server 2008 creates multiple copies and multiple thread to handle different scenarios.

Does it really creates multiple dataset in buffer for each output? or all the outputs will share the same copy of data in the buffer?

If it shares the same copy of data in buffer, what will happen if I add new column or If I apply any character map transformation for an output?


How can we send a mail to a list of users using Cofiguration file in ssis?

$
0
0

How can we send a mail to a list of users using Cofiguration file in ssis?

Here i will tried one thing ...I.E

I am created one varible with the name EMail To:abcd@gmail.com;xyz@gmail.com ,like these and created configuration file on that one but that mail is sent to the only one person...

2.I also want to send a list of users mail id's through configuration file . so that in future no need to modify the email id's through package.

Regards,

Naresh


move folder using file system task

$
0
0

Hi All,

source path 

D:\Company\Work\Anil

Destination Path

E:\Company\MyWork\

In my scenario, I need to move Anil folder in D Drive  to Mywork folder in E drive as mentioned paths above.

Please Help

Thanks,

Anilkumar


pls help: how to backfill the data since some day

$
0
0

hello,

I am very new to SSIS. I just want write a IS package that can integrate the data from source since the date in the destination table. For example, if the latest data date is today-9, then it will integrate the data from today-9 from source table to the estination. What should I do, please guide me in detail. I had figured out a data flow task that can integrate all data from OLE source to dest.

thanks

Liu


Mark as Answer if it helps. This posting is provided "AS IS" with no warranties, confers no rights.

Copy files dynamically

$
0
0

hi , I am trying to copy files dynamically from a remot folder by using File System task ,

the files are going to be generated daily with f1yyyy-mm-dd.txt

I created 3 file connections :

- Existing remote folder (RemotFolder) and set that to var v_remotefolder

- Existing destination folder (DestFolder)

- existing file (filename) and set the expression to var (string ) =v_fname

in the File System task I set the the

Destination connection = DestFolder

Operation =Copy file

Source = filename

expression >>Property (source) = @[User::v_remotefolder] + @[User::v_fname]

I know I need the date too ,but I 'm getting error on this step.

Can you please tell me if you know how to resolve this without using For each loop since I don't have control on the remote folder and I don't want to copy unneeded files (the files are 10 GB daily) and get delete it once every month.

-I know this not uncommon task but I can't find any example.

Thanks

 

 

 

 

error information for failed SSIS job [error event id: 12291 and keyword: 0x80000000000000]

$
0
0

Please let me know what EventID 12291 and keywords 0x80000000000000 means from below event details.<o:p></o:p>

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <o:p></o:p>

<System>

<Provider Name="SQLISPackage110" /><EventID Qualifiers="16385">12291</EventID><Level>2</Level><Task>0</Task>

<Keywords>0x80000000000000</Keywords>

<TimeCreated SystemTime="2012-11-09T07:29:48.000000000Z" /> <o:p></o:p>

<EventRecordID>969873</EventRecordID>

<Channel>Application</Channel>

<Computer>xxx-xx.xx-xx.com</Computer>

<Security UserID="xxxxxxxxxxxxxxxxxxxxxxxxx" /></System>

<EventData>

<Data>LoadFTData</Data>

</EventData>

</Event><o:p></o:p>

Whereas the job throws below error message<o:p></o:p>

Executed as user: xx-xxx\xxx. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 7:29:32 AM Error: 2012-11-09 07:29:48.32 Code: 0x00000006 Source: SCR_Process FT File Description: The script returned a failure result. End Error DTExec:The package execution returned DTSER_FAILURE (1). Started: 7:29:32 AM Finished: 7:29:48 AM Elapsed: 15.35 seconds. The package execution failed. The step failed.<o:p></o:p>

SSIS 2012 Exporting from SQL to Excel

$
0
0

I am now using SQL 2012 and having difficulties exporting data from SQL to Excel 2010 using Integration Services.

I have created the following

Data Flow Task

OLE data Source (selected the relevant table)

Excel Destination (set the Destination)

The package completes without any errors but the data is not transferred accross.

Can anyone help?

Viewing all 24688 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>