dbTalk Databases Forums  

Global veriable Problem in DTS Data Transform Task

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Global veriable Problem in DTS Data Transform Task in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Kris
 
Posts: n/a

Default Global veriable Problem in DTS Data Transform Task - 05-24-2005 , 06:48 PM






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





Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Global veriable Problem in DTS Data Transform Task - 05-25-2005 , 12:20 AM






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


Quote:
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


Reply With Quote
  #3  
Old   
Kris
 
Posts: n/a

Default Re: Global veriable Problem in DTS Data Transform Task - 05-25-2005 , 10:52 AM



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:

Quote:
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



Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Global veriable Problem in DTS Data Transform Task - 05-25-2005 , 01:44 PM



So you have defined your query with a ?
You have hit the parameters button
You go to the input parameters tab
Map the GV to the ?

This is when it goes bang?

What datatype are you expecting in the query and what is the datatype
passed in the GV. I'll see if I can replicate. Also what SP are you
using?


"Kris" <Kris (AT) discussions (DOT) microsoft.com> wrote


Quote:
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




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.