![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi , I am having probelm with Global Variables in my DTS Package. Data Transform Task is defiend between 2 SQL Server. I have defined Global variable in my Package and trying to pass variable value to SQL Statement defined in Data Transform Task. For Example 1) Gloabal Var : OrderNo, value is assign through Dynamic task 2) SQL1 qry : select * from xyz where Orderno= ? 3) Transfering above qry data to SQL 2. Erro : Microsoft OLE DB Provider for SQL Server Syntax Error or access Voilation I am admin on both the server. Any Idea ? Thanks -Kris |
#3
| |||
| |||
|
|
When do you receive this error? On hitting the parameters button? The query looks fine to me. Check the value of the GV after you have assigned a value in the DP task. Datatype mismatches? Allan "Kris" <Kris (AT) discussions (DOT) microsoft.com> wrote in message news:Kris (AT) discussions (DOT) microsoft.com: Hi , I am having probelm with Global Variables in my DTS Package. Data Transform Task is defiend between 2 SQL Server. I have defined Global variable in my Package and trying to pass variable value to SQL Statement defined in Data Transform Task. For Example 1) Gloabal Var : OrderNo, value is assign through Dynamic task 2) SQL1 qry : select * from xyz where Orderno= ? 3) Transfering above qry data to SQL 2. Erro : Microsoft OLE DB Provider for SQL Server Syntax Error or access Voilation I am admin on both the server. Any Idea ? Thanks -Kris |
#4
| |||
| |||
|
|
Thanks for your reply. I receive error when, I hit ok after selecting Variable..data type is not a problem it is same field and variable .. Thanks "Allan Mitchell" wrote: When do you receive this error? On hitting the parameters button? The query looks fine to me. Check the value of the GV after you have assigned a value in the DP task. Datatype mismatches? Allan "Kris" <Kris (AT) discussions (DOT) microsoft.com> wrote in message news:Kris (AT) discussions (DOT) microsoft.com: Hi , I am having probelm with Global Variables in my DTS Package. Data Transform Task is defiend between 2 SQL Server. I have defined Global variable in my Package and trying to pass variable value to SQL Statement defined in Data Transform Task. For Example 1) Gloabal Var : OrderNo, value is assign through Dynamic task 2) SQL1 qry : select * from xyz where Orderno= ? 3) Transfering above qry data to SQL 2. Erro : Microsoft OLE DB Provider for SQL Server Syntax Error or access Voilation I am admin on both the server. Any Idea ? Thanks -Kris |
![]() |
| Thread Tools | |
| Display Modes | |
| |