![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, Thank for your help. I need to export data from a sql table to a excel file but in the query I want to use parameters (start date and finish date) and this values I need change. (prompt me to type) I try to use global variables but this do not accept in the query (Execute Sql task) Regards. |
#3
| |||
| |||
|
|
Which version of DTS are you using? You do not want the ExecuteSQL task you want the Transform Data Task. Your Source Query will look something like SELECT <col list> FROM <Table> WHERE <col> BETWEEN ? AND ? You then click the parameters button and map the ? to Global Variables "Gualberto" <gfranco (AT) info-arch (DOT) com> wrote in message news:gfranco (AT) info-arch (DOT) com: Hi, Thank for your help. I need to export data from a sql table to a excel file but in the query I want to use parameters (start date and finish date) and this values I need change. (prompt me to type) I try to use global variables but this do not accept in the query (Execute Sql task) Regards. |
![]() |
| Thread Tools | |
| Display Modes | |
| |