Quantcast
Channel: SQLServerCentral » SQL Server 2005 » SQL Server 2005 Integration Services » Latest topics
Viewing all 1193 articles
Browse latest View live

Pushing data to an AS400

$
0
0

In SQL Server 2000 I can easily push data to our AS400 using an ODBC connection - which then uses the Client Access (iSeries Navigator) drivers. For AS400's, using IBM's ODBC drivers are still the most desirable method.

Nonetheless, now I am trying to push data through SSIS but ODBC not a valid connection type in the data flow object. So, I am trying to use the OLE DB connection object "IBMDA400" and I am having troubles. I have verified that the OLE DB object is successfully connecting because I have been able to select the correct table and map all of the columns.

However, I am getting the following error on every single column (with the column name changing of course):

An OLE DB record is available. Source: "IBMDA400 Command" Hresult: 0x80004005 Description: "CWBZZ5014 Value of parameter GBMCU could not be converted to the host data type.".

Anyone out there successfully pushing data to an AS400 using SSIS. Any tips you can provide?

Thanks in advance.

Ryan Hunt


moving data from SSIS to As400 using IBM DB2 UDB OLEDB provider, failing due to special symbol – endash ANSI value 0150

$
0
0
Hi,I am getting error while moving data from SSIS dataflow task using provider "IBM DB2 UDB for iseries IBMDASQL OLEDB provider" , it was running fine,suddenly starts failing I noticed that the rows that are failing contains symbols " – " called as endash having ANSI code 0150. This is stored in varchar field in SQL Server 2008R2, and is mapped to character data type column of AS400/DB2 database. but its failing with error "CWBZZ5014 Value of parameter columnName could not be converted to the host data type."."CWBNL0107 - Converted 80 bytes, 2 errors found beginning at offset 10 ".AS I found that this special symbol is at 11th position in the given column.I have tried changing force translation value from 65535 to 1252 (Win Latin-1) but its not working ?Can someone help here.Thanks,

Ideas on resolving error -- "VS_NEEDSNEWMETADATA".

$
0
0
Hi I am running a large dtsx package and in a data flow task I am getting the following error in the validation of the [i]OLE DB DESTINATION[/i] object. Here is the specific error:[DTS.Pipeline] Error: "component "My_Data reader destination" (337)" failed validation and returned validation status "VS_NEEDSNEWMETADATA".Not sure where I should look from here I have looked at my source data and the data types and sizes are compatible with the destination. I welcome any suggestions.

SSIS question

$
0
0
how do i modify a package which has been deployed to the server? This package is being used for dba purpose (like check integrity task). Will I need the "project" related to the package? Or can I just get the dtsx file and save it in my local and make changes to it?

writing data from Table to Excel files in Loop based On a condition

$
0
0
HI,I am trying to load the data from table to Excel files. I have 5 folders, each folder has an exel file called "Excel Upload.xlsx".I need to write data into each of the excel file(into one of the sheet) based on one condition.If the prefix of one of the ID in the table matches prefix of folder name then write that data back to that particular folder.Ex: ID: "GARNIER SHAMPOO" then write back to \\servername\e$\Data\MDP_76_02\Inbound\Excel Upload\Garnier\excel upload.xlsxI am facing issues while doing this, Can any one please provide me an approach.

Please Help SSIS - scheduled JOB Files and below is the Error From history

$
0
0
Source is the ODBC Connection - DNS Name Created and Tested connection - working fine.Destination is SQL Server database- Works fine in Business Intelligence - Work fine from SQL SERVER MSDB Package Execution. - Fails with below Error when I schedule the job or execute from the scheduled jobs [u]error from history :[/u]Executed as user: NT AUTHORITY\NETWORK SERVICE. Microsoft (R) SQL Server Execute Package Utility Version 10.0.5500.0 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 3:08:33 PM Error: 2013-04-12 15:08:34.65 Code: 0xC0047062 Source: Split [16] Description: 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) End Error Error: 2013-04-12 15:08:34.65 Code: 0xC0047017 Source: Daily Split SSIS.Pipeline Description: component "Split" (16) failed validation and returned error code 0x80131937. End Error Error: 2013-04-12 15:08:34.65 Code: 0xC004700C Source: Daily Split SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2013-04-12 15:08:34.65 Code: 0xC0024107 Source: Daily Split Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 3:08:33 PM Finished: 3:08:34 PM Elapsed: 1.656 seconds. The package execution failed. The step failed.Thanks

BufferTempStoragePath

$
0
0
Hi All,I have ETL jobs running on one of our server. Jobs are scheduled to run early morning.....Jobs run fine.. but sometimes it comes up with following error....[u][i]The buffer manager cannot create a temporary storage file on any path in the BufferTempStoragePath property. There is an incorrect file name or no permission.[/i][/u]I have no idea what this error means...I had look into MSDN support site, not much help either..any thoughts will much appreciated...thanks..

update config table

$
0
0
Hello there,I want to have StartDate and EndDate in config table. I need this so that just in case if the package fails, I can execute for any range of date as I need.Is it a good idea to update the table on daily basis to run the package for previous day. Also, another job will have to created and run to update Config table dates ? am I thinking in the right direction ? :)Thanks in advance!

BlobTempStoragePath and BufferTempStoragePath - Default Location Change

$
0
0
Hi SQL Experts We have an issue at the moment where we are encountering the following error on our Pre-Prod environment during execution of our SSIS ETL packages. The error is as follows. Failed to retrieve long data for column "XML_Column"I believe this is a capacity issue as the C: drive has only 2gb free from 30gb partition. I think the XML Blob data is getting buffered on the C: drive during transit. The setting for the BlobTempStoragePath and BufferTempStoragePath in our SSIS package is @[User::TempStorage]. Am I correct in assuming that this will be the TEMP location for whatever windows account is running the SSIS package i.e the SSIS Proxy account? The reason I ask is that while we are waiting for the 3rd Level Wintel team to clear down some space we attempted to change the Windows Environmental variables for the Proxy and Service account to point at our D: drive (much more space) but this had made no difference. I suspect that the C: drive is still getting hit. Maybe i'm missing something? I'm hoping that the Wintel team can clear enough space for the short term but this will no doubt be consumed within time. I'm looking at an alternative to having to hard code a location into the BlobTempStoragePath and BufferTempStoragePath settings for each data flow task in all SSIS packages in all our environments which would be a major pain. Any advice would be greatly appreciated. Many thanks Alan :-D

dynamic excel columns into dynamic table

$
0
0
I have excel with dynamic column and i want to load into table creating dynamic columns.I need to add new columns in the same tablekindly suggest me the approch for the samesource excel -1=========Emp_Id No_Framesource excel -2=========Emp_Id No_Frame No_Sales No_Month No_Purchaselike these, the source excel will have more / less columns. based on this, i need to insert into my database tableI willnot be able to use SP select * FROM OPENROWSET(''Microsoft.ACE.OLEDB.12.0'',''Excel 8.0;Databaseas my server doesnot allow to install any provider of MS :(

Excel source Binding Status Error

$
0
0
I am trying to load the data from Excel sheet and its givinge me the following error;[OLEDBDestination - Error: An error occurred while setting up a binding for the "Column_Name" column. The binding status was "DT_TEXT".Since Exel uses the forst few rows to derive the data types , i had tried to make chages in the Advanced editor and then setting the datatypes for the External columns and the output columns , but still not working.In Excel sheet the first rows are of String type and in the destination table they are of TextStream(varchar(max)).so i need to make excel source think that the datatypes are of ntext type.any help will be apprecited.Thanks

ActiveX Script to Script Task

$
0
0
I am just a beginner in SSIS and having a problems to convert this ActiveX script task code to Script Task.I just know that ActiveX script task will be deprecated in SSIS 2008.Could anyone help me?[quote]Function Main() Dim strFileName, strFilePath, strDateTime, fso,strArchivePath strFilePath = DTSGlobalVariables("File_Directory").Value If Right(strFilePath, 1) <> "\" Then strFilePath = strFilePath & "\" End If strDateTime = Right("0" & Month(Date),2) & Right("0" & Day(dateadd("d",-1,Date) ),2) & Year(Date) ' First file strFileName=DTSGlobalVariables("First_File_Name").Value 'Backup First file strArchivePath = DTSGlobalVariables("Archive_Directory").Value If Right(strArchivePath, 1) <> "\" Then strArchivePath = strFilePath & "\" End If Set fso = CreateObject("Scripting.FileSystemObject") fso.CopyFile strFileName, strArchivePath & "Overpack_" & strDateTime & ".txt", True ' Second file strFileName=DTSGlobalVariables("Second_File_Name").Value 'Backup Second file fso.CopyFile strFileName, strArchivePath & "Product_" & strDateTime & ".txt", True Main = DTSTaskExecResult_SuccessEnd Function[/quote]This code is actually from DTS migration to SSIS. After migration, it become ActiveX script task.i need to convert this task to script task.help me please....(-_-)....thanks

Performing an In statement between two datasets

$
0
0
I have two oledbsources. One oledbsource has the distinct list of product ids (DataSet A) and another oledbsource has all of the order information with product id (DataSet B). How do I get all those orders (DataSet B) that have product ids in DataSet A? For example:Dataset Aproduct id12Dataset Border id product id1 12 13 1the result set should beorder id product id (DataSet A)1 12 13 1The Merge join transformation didn't give the desired results.

Sequence container not to fail if a task fails inside it

$
0
0
hi All,Just need a steer...in that i have a sequence container with 3 tasksi need to go down the failure route if all 3 fail but down the successroute if at least one of them succeeds. What would be the de facto wayof programming this. NOTE : On the failure i do not want the sequence container task to fail. only to go down the failure route...

Execute data flow task

$
0
0
Hi All,I have an existing complex package with lots of data flow tasks grouped in different sequence container. Previously it was running as a whole single unit. Now the requirement has changed i need to execute few selected dataflow task in a different schedule.For e.g.In sequence container 1--> Dataflow task1 needs to run monthly on 11th.In sequence container 2 --> Dataflow task3 needs to run dailyIn sequence container 3 --> Dataflow task4 needs to run monthly on 5th.And on 20th the whole package except the above dataflow tasks.I know if i can create separate packages based on the above schedule requirement then it will work, but is it possible to handle that programmatically through some script task where i will load the above package run time, then based on parameter i can execute the required dataflow task of the selected sequence container, or is there any other option without making any changes to main package it self. Please suggest how to handle the above requirement without making any change to the existing package .Thanks in advanceSam

load multiple xml file into a single flat file destination

$
0
0
hi guysi need help, i've created a ForeachLoop Container which loop through all the files .xml in my source directory then created XML Source and flat file Destination, my package execute successfully but create multiple output .txt file instead i one to output in one single .txt filethanks

PGP - Encrypt and decrypt files through batch

$
0
0
I just installed PGP software on my machine. Now I want to use it, but not in the GUI interface provided. I'd like to type something like [pgp -s testpgp.txt] at a DOS prompt and have the file either encrypt or decrypt. I'm not able to find the exact command. Also, at the command line, it is giving me an error stating it cannot locate pgp.Can anyone help me assign or direct me to the write syntax to accomplish this?Thanks,Amy Welshawelsh@welshkc.com

Bulk Insert Task Within ForEachLoopContainer???

$
0
0
Hi to All, My First Question--Can we use Bulk insert task within the foreackloop Container???? If "NO" U can stop rt here or provide alternatives..If YES----I need help.What i am trying to do is very simple. Loop over a folder find all .txt files and do bulk insert into SQL table. i think i have everything setup in right way.I have one bulk insert task inside my foreach loop. Enumerator is foreachfileenumerator. i have a varibale-filetobeloaded. in my file connection properties i have connection stringexpression using this variable.The erro i get is flat file connectionis invalid or pointing to an invalid object.Thnaks, in advance if u coul dplz help me to do this.

Parameter Information cannot be derived from SQL statements with sub-select queries

$
0
0
Trying to execute the SSIS package in BIDS-2005 and keep getting same error. While same package works in BIDS 2008 very well. I downgraded package from 2008 to 2005 also made it from scratch using BIDS-2005 but still same error.bypassprepare is TRUE alsopassing BatchID1 as ? in below querry. BatchID is column in dbo.my_table. trying to load row count from my_db.dbo.xyz to dbo.my_tableUPDATE dbo.my_table SET SrcRecCnt = (select COUNT(*) from My_db.dbo.xyz)WHERE BatchID=?" failed with the following error: "Parameter Information cannot be derived from SQL statements with sub-select queries. Set parameter information before preparing command.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. If need to create expression can suugest expression for this query ? Any one has face this issue and can help me with solution would be great help Thanks

store the select query result as variable and load on another table in ssis

$
0
0
Hi guys ... Like to know how i can store select query result in variable and then load it to the other table in SSIS-2005. i am using select count (*) from dbo.my_Table on Server1. want to store this query result in variable and then load this result on Server2\MY_db.dbo.xyz.Thanks for help
Viewing all 1193 articles
Browse latest View live