![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am new to DTS programming. Project I am working on requires me to create a stored procedure (sql server 2000) that would import data from a fixed length records text file to a table using DTS package. Based on primary key input parameter, stored procedure should update existing record if found, or insert a new one. I created a dts package using the DTS designer and added Text File data source, Microsoft OLEDBProvider for SQLServer destination connection. I have a stored procedure to update or insert records. I am looking for the way to feed records from the text file source to the ExecuteSQLTask. I created package global variables and was hoping to write file source data to the global variables and then use them as input parameters to the ExecuteSQLTask. But I can't find the way to assign file data to the variables. I would appreciate your help in this matter. Natalie |
#3
| |||
| |||
|
|
Hi, I am new to DTS programming. Project I am working on requires me to create a stored procedure (sql server 2000) that would import data from a fixed length records text file to a table using DTS package. Based on primary key input parameter, stored procedure should update existing record if found, or insert a new one. I created a dts package using the DTS designer and added Text File data source, Microsoft OLEDBProvider for SQLServer destination connection. I have a stored procedure to update or insert records. I am looking for the way to feed records from the text file source to the ExecuteSQLTask. I created package global variables and was hoping to write file source data to the global variables and then use them as input parameters to the ExecuteSQLTask. But I can't find the way to assign file data to the variables. I would appreciate your help in this matter. Natalie |
![]() |
| Thread Tools | |
| Display Modes | |
| |