![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi ! Well, im having my first steps with MSSQL and I have a small problem. I've created a package that retrieves data from an AS400 system and specifically from a multimember file. I need to create each time a date format like '200407' and pass it in an SQL Execute Task as parameter. I've created a string variable and Im trying to assign the value from MSSQL Execute Task and pass it to the AS400 Execute Task using the SELECT INTO :test etc. How do I pass the params to the task execution ? Thanks and appologies for the newbie question Enigma |
#3
| |||
| |||
|
|
-----Original Message----- Global variable parameter support fro SQL tasks did not arrive until SQL 2000, so for SQL 7.0 you will need to manipulative SQL string directly in a script task. Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Darren Green http://www.sqldts.com "Enigma" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:2c0bb01c469aa$89218a50$a601280a (AT) phx (DOT) gbl... Hi ! Well, im having my first steps with MSSQL and I have a small problem. I've created a package that retrieves data from an AS400 system and specifically from a multimember file. I need to create each time a date format like '200407' and pass it in an SQL Execute Task as parameter. I've created a string variable and Im trying to assign the value from MSSQL Execute Task and pass it to the AS400 Execute Task using the SELECT INTO :test etc. How do I pass the params to the task execution ? Thanks and appologies for the newbie question Enigma . |
#4
| |||
| |||
|
|
Ive tried to create it on an SQL 2000 as well. I have my param named tmpmember and Im trying to place it on the AS400 Execute task. It doesnt seems to work It goes like this CREATE ALIAS LIB1.TEST FOR LIB1.FILE1(@tmpmember) What Im doing wrong ? The Global Variable has the correct value Thanks -----Original Message----- Global variable parameter support fro SQL tasks did not arrive until SQL 2000, so for SQL 7.0 you will need to manipulative SQL string directly in a script task. Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Darren Green http://www.sqldts.com "Enigma" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:2c0bb01c469aa$89218a50$a601280a (AT) phx (DOT) gbl... Hi ! Well, im having my first steps with MSSQL and I have a small problem. I've created a package that retrieves data from an AS400 system and specifically from a multimember file. I need to create each time a date format like '200407' and pass it in an SQL Execute Task as parameter. I've created a string variable and Im trying to assign the value from MSSQL Execute Task and pass it to the AS400 Execute Task using the SELECT INTO :test etc. How do I pass the params to the task execution ? Thanks and appologies for the newbie question Enigma . |
#5
| |||
| |||
|
|
-----Original Message----- In article <2e03601c46b11$8d20ce50$a401280a (AT) phx (DOT) gbl>, wrote: Ive tried to create it on an SQL 2000 as well. I have my param named tmpmember and Im trying to place it on the AS400 Execute task. It doesnt seems to work It goes like this CREATE ALIAS LIB1.TEST FOR LIB1.FILE1(@tmpmember) What Im doing wrong ? The Global Variable has the correct value Thanks -----Original Message----- Global variable parameter support fro SQL tasks did not arrive until SQL 2000, so for SQL 7.0 you will need to manipulative SQL string directly in a script task. Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Darren Green http://www.sqldts.com "Enigma" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:2c0bb01c469aa$89218a50$a601280a (AT) phx (DOT) gbl... Hi ! Well, im having my first steps with MSSQL and I have a small problem. I've created a package that retrieves data from an AS400 system and specifically from a multimember file. I need to create each time a date format like '200407' and pass it in an SQL Execute Task as parameter. I've created a string variable and Im trying to assign the value from MSSQL Execute Task and pass it to the AS400 Execute Task using the SELECT INTO :test etc. How do I pass the params to the task execution ? Thanks and appologies for the newbie question Enigma . You may want to try CREATE ALIAS LIB1.TEST FOR LIB1.FILE1(?) But that still may not work depending on the driver so an answer would be to use a variation of this method Global Variables and SQL statements in DTS (http://www.sqldts.com/Default.aspx?205) Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com www.konesans.com - for all your consultancy needs . |
#6
| |||
| |||
|
|
Appoligies for my newbie questions but how am I going to implement this -----Original Message----- In article <2e03601c46b11$8d20ce50$a401280a (AT) phx (DOT) gbl>, wrote: Ive tried to create it on an SQL 2000 as well. I have my param named tmpmember and Im trying to place it on the AS400 Execute task. It doesnt seems to work It goes like this CREATE ALIAS LIB1.TEST FOR LIB1.FILE1(@tmpmember) What Im doing wrong ? The Global Variable has the correct value Thanks -----Original Message----- Global variable parameter support fro SQL tasks did not arrive until SQL 2000, so for SQL 7.0 you will need to manipulative SQL string directly in a script task. Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Darren Green http://www.sqldts.com "Enigma" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:2c0bb01c469aa$89218a50$a601280a (AT) phx (DOT) gbl... Hi ! Well, im having my first steps with MSSQL and I have a small problem. I've created a package that retrieves data from an AS400 system and specifically from a multimember file. I need to create each time a date format like '200407' and pass it in an SQL Execute Task as parameter. I've created a string variable and Im trying to assign the value from MSSQL Execute Task and pass it to the AS400 Execute Task using the SELECT INTO :test etc. How do I pass the params to the task execution ? Thanks and appologies for the newbie question Enigma . You may want to try CREATE ALIAS LIB1.TEST FOR LIB1.FILE1(?) But that still may not work depending on the driver so an answer would be to use a variation of this method Global Variables and SQL statements in DTS (http://www.sqldts.com/Default.aspx?205) Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com www.konesans.com - for all your consultancy needs . |
![]() |
| Thread Tools | |
| Display Modes | |
| |