dbTalk Databases Forums  

MSSQL 7.0 - DTS Packages - Global Variables

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


Discuss MSSQL 7.0 - DTS Packages - Global Variables in the microsoft.public.sqlserver.dts forum.



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

Default MSSQL 7.0 - DTS Packages - Global Variables - 07-14-2004 , 08:57 AM






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

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: MSSQL 7.0 - DTS Packages - Global Variables - 07-14-2004 , 09:07 AM






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

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



Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: MSSQL 7.0 - DTS Packages - Global Variables - 07-16-2004 , 03:47 AM



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


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


.


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

Default Re: MSSQL 7.0 - DTS Packages - Global Variables - 07-16-2004 , 04:21 AM



In article <2e03601c46b11$8d20ce50$a401280a (AT) phx (DOT) gbl>, wrote:
Quote:
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





Reply With Quote
  #5  
Old   
 
Posts: n/a

Default Re: MSSQL 7.0 - DTS Packages - Global Variables - 07-16-2004 , 04:27 AM



Appoligies for my newbie questions but how am I going to
implement this


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



.


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

Default Re: MSSQL 7.0 - DTS Packages - Global Variables - 07-16-2004 , 04:51 AM



In article <2e30801c46b17$1795ce50$a501280a (AT) phx (DOT) gbl>, wrote:
Quote:
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



.


The first one.

You type in the command I gave you to the ExecuteSQL task. You will
see (SQL Server 2000 only) the parameters button. If upon pressing
that you get an error then the chances are the driver does not support
this OR the design time interface to this task is not playing ball. If
on the other hand you do not get an error you should be able to map on
the Input Global Variables Tab a Global Variable declared in your
package. This will be resolved at runtime

The second one.

This option is available in 2000 and 7. You add an ActiveX Script task
before the executeSQL task and join it to the ExecuteSQL task through a
workflow constraint.

Introduction to Workflow
(http://www.sqldts.com/default.aspx?287)

You substitute the name of your ExecuteSQL task for the name that we
provide in this article.




Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
www.konesans.com - for all your consultancy needs





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.