dbTalk Databases Forums  

Re: Paramaters in DTS not working

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


Discuss Re: Paramaters in DTS not working in the microsoft.public.sqlserver.dts forum.



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

Default Re: Paramaters in DTS not working - 07-03-2003 , 11:03 AM






Hello, Andrew!

Your source statement should be


Select * from Table 1 Where Field2 = ?

You can then map your parameter (?) to a global variable



--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

: I have a Execution Task, in wich the work (I have "delete * from Table1
: Where field1=Parameter1")

: but then i have a Transformation (the black arrow between 2 connections)
nd
: it doesn't recognizes it

: ("Select * from Table 1 Where Field2=Parameter1")

--- Microsoft Outlook Express 6.00.2800.1158



Reply With Quote
  #2  
Old   
Andrew Ofthesong
 
Posts: n/a

Default Re: Paramaters in DTS not working - 07-08-2003 , 09:35 AM






Thanks Allan

Now, i've created a global parameter "MyString" as "qwerty"

in a data pump task, i have
"select * from Table1 where table1.field1<>?"

I press the "parameters" button, map the parameter to the global variable,
but when i press "Preview results..." i get an "Ssome parameters havn't a
specified value"....

Any ideas?



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> escribió en el mensaje
news:%23ikRnyXQDHA.2852 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
Hello, Andrew!

Your source statement should be


Select * from Table 1 Where Field2 = ?

You can then map your parameter (?) to a global variable



--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

: I have a Execution Task, in wich the work (I have "delete * from Table1
: Where field1=Parameter1")

: but then i have a Transformation (the black arrow between 2 connections)
nd
: it doesn't recognizes it

: ("Select * from Table 1 Where Field2=Parameter1")

--- Microsoft Outlook Express 6.00.2800.1158





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

Default Re: Paramaters in DTS not working - 07-09-2003 , 12:56 AM



OK

Don't waoory about it. The parameter val is passed at runtime


--


Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Andrew Ofthesong" <Andrew (AT) NoSpam (DOT) net> wrote

Quote:
Thanks Allan

Now, i've created a global parameter "MyString" as "qwerty"

in a data pump task, i have
"select * from Table1 where table1.field1<>?"

I press the "parameters" button, map the parameter to the global variable,
but when i press "Preview results..." i get an "Ssome parameters havn't a
specified value"....

Any ideas?



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> escribió en el mensaje
news:%23ikRnyXQDHA.2852 (AT) tk2msftngp13 (DOT) phx.gbl...
Hello, Andrew!

Your source statement should be


Select * from Table 1 Where Field2 = ?

You can then map your parameter (?) to a global variable



--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

: I have a Execution Task, in wich the work (I have "delete * from
Table1
: Where field1=Parameter1")

: but then i have a Transformation (the black arrow between 2
connections)
nd
: it doesn't recognizes it

: ("Select * from Table 1 Where Field2=Parameter1")

--- Microsoft Outlook Express 6.00.2800.1158







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.