![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm currently using a DTSDataPumpTask to copy data from one database to another. The SourceSQLStatement is a simple SELECT. So far so good. Now I'd like to replace the SELECT with a stored proc taking 1 input parameter and 1 OUTPUT parameter, like this: GetAccount (@startDate datetime, @enddate datetime OUTPUT) I've read "Global Variables and SQL statements in DTS" (http://www.sqldts.com/Default.aspx?205), but it did not help since I'm using DTSDataPumpTask and the object.OutputGlobalVariableNames property is only available with ExecuteSQLTask2 Object. Any suggestions? TIA |
#3
| |||
| |||
|
|
I'm currently using a DTSDataPumpTask to copy data from one database to another. The SourceSQLStatement is a simple SELECT. So far so good. Now I'd like to replace the SELECT with a stored proc taking 1 input parameter and 1 OUTPUT parameter, like this: GetAccount (@startDate datetime, @enddate datetime OUTPUT) I've read "Global Variables and SQL statements in DTS" (http://www.sqldts.com/Default.aspx?205), but it did not help since I'm using DTSDataPumpTask and the object.OutputGlobalVariableNames property is only available with ExecuteSQLTask2 Object. Any suggestions? TIA |
#4
| |||
| |||
|
|
Why would you want an output parameter in a DataPump? A DataPump expects a result set, and I cannot se why you want anything else. I'd like both a dataset returned and an output parameter. |
|
-----Original Message----- And what do you want to do with the result ? Is the output param the only thing of interest here? Do you actually have a rowset in the SP that you want to move as well? Yes. |
|
Which version of SQL Server are you using ? SQL 2000 +SP3 on Win2K Advance Server + SP3 |
#5
| |||
| |||
|
|
Why would you want an output parameter in a DataPump? A DataPump expects a result set, and I cannot se why you want anything else. I'd like both a dataset returned and an output parameter. More details below. |
![]() |
| Thread Tools | |
| Display Modes | |
| |