dbTalk Databases Forums  

Global Prameters - Transform Data Task

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


Discuss Global Prameters - Transform Data Task in the microsoft.public.sqlserver.dts forum.



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

Default Global Prameters - Transform Data Task - 10-18-2005 , 10:17 AM






Hi ALL,

When i am passing global parameters for sql query (subquery) in Transform
Data Task getting error

For Example :
SELECT *
FROM (SELECT * FROM Txn
WHERE Dt_Changed_Date > ? AND
Txn.ParentTxnID IS NULL ) as T

Error Source : Microsoft OLEDB Provider for Sql Server
Error Description : Syntax error or access violation

If i replace '?' with hardcoded value it works fine, but i need to pass
dynamic value which stored in Global parameter.

Many thanks to all in advance...

Soma


Reply With Quote
  #2  
Old   
SQL
 
Posts: n/a

Default RE: Global Prameters - Transform Data Task - 10-18-2005 , 11:23 AM






Did you add the parameter by clicking on the Parameters button on the source
tab??

http://sqlservercode.blogspot.com/

"Soma" wrote:

Quote:
Hi ALL,

When i am passing global parameters for sql query (subquery) in Transform
Data Task getting error

For Example :
SELECT *
FROM (SELECT * FROM Txn
WHERE Dt_Changed_Date > ? AND
Txn.ParentTxnID IS NULL ) as T

Error Source : Microsoft OLEDB Provider for Sql Server
Error Description : Syntax error or access violation

If i replace '?' with hardcoded value it works fine, but i need to pass
dynamic value which stored in Global parameter.

Many thanks to all in advance...

Soma


Reply With Quote
  #3  
Old   
Thomas Bradshaw via SQLMonster.com
 
Posts: n/a

Default Re: Global Prameters - Transform Data Task - 10-18-2005 , 11:32 AM



Soma,

Have a look here (about 1/2 way down the page)
http://www.sqldts.com/default.aspx?234

In summary, just trust that it works.

Thomas Bradshaw
MyWebGrocer.com
Data Integration Services


--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #4  
Old   
Soma
 
Posts: n/a

Default RE: Global Prameters - Transform Data Task - 10-18-2005 , 11:37 AM



When i click Parameter button to add Parameters then i got those errors, not
able to set Parameters

soma

"SQL" wrote:

Quote:
Did you add the parameter by clicking on the Parameters button on the source
tab??

http://sqlservercode.blogspot.com/

"Soma" wrote:

Hi ALL,

When i am passing global parameters for sql query (subquery) in Transform
Data Task getting error

For Example :
SELECT *
FROM (SELECT * FROM Txn
WHERE Dt_Changed_Date > ? AND
Txn.ParentTxnID IS NULL ) as T

Error Source : Microsoft OLEDB Provider for Sql Server
Error Description : Syntax error or access violation

If i replace '?' with hardcoded value it works fine, but i need to pass
dynamic value which stored in Global parameter.

Many thanks to all in advance...

Soma


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.