dbTalk Databases Forums  

ExecuteSQLTask

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


Discuss ExecuteSQLTask in the microsoft.public.sqlserver.dts forum.



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

Default ExecuteSQLTask - 09-08-2003 , 01:25 AM






Hello!

How can i start an ExecuteSQLTask?


greets

chris



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

Default Re: ExecuteSQLTask - 09-08-2003 , 01:30 AM






It is hardly ever, if indeed ever, that you will have a package that calls
individual tasks in a user defined manner on demand. It is more common to
have the workflow determine when and how a task is executed and the package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote

Quote:
Hello!

How can i start an ExecuteSQLTask?


greets

chris





Reply With Quote
  #3  
Old   
Christian Weber
 
Posts: n/a

Default Re: ExecuteSQLTask - 09-08-2003 , 01:39 AM



Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
It is hardly ever, if indeed ever, that you will have a package that calls
individual tasks in a user defined manner on demand. It is more common to
have the workflow determine when and how a task is executed and the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris







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

Default Re: ExecuteSQLTask - 09-08-2003 , 02:02 AM



Have the ExecuteSQL task follow on using an On Success constraint from the
Active Script task.

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote

Quote:
Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
It is hardly ever, if indeed ever, that you will have a package that
calls
individual tasks in a user defined manner on demand. It is more common
to
have the workflow determine when and how a task is executed and the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris









Reply With Quote
  #5  
Old   
Christian Weber
 
Posts: n/a

Default Re: ExecuteSQLTask - 09-08-2003 , 02:45 AM



Hello,
this is not what i want.
i have to change the sqlstatement of the ExecuteSQLTask multiple and run it
multiple.

greets

chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:OYTzmcddDHA.1532 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
Have the ExecuteSQL task follow on using an On Success constraint from the
Active Script task.

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh85b$1eh$1 (AT) news (DOT) mch.sbs.de...
Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
It is hardly ever, if indeed ever, that you will have a package that
calls
individual tasks in a user defined manner on demand. It is more
common
to
have the workflow determine when and how a task is executed and the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris











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

Default Re: ExecuteSQLTask - 09-08-2003 , 03:04 AM



Then change the statement in a loop.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote

Quote:
Hello,
this is not what i want.
i have to change the sqlstatement of the ExecuteSQLTask multiple and run
it
multiple.

greets

chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:OYTzmcddDHA.1532 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Have the ExecuteSQL task follow on using an On Success constraint from
the
Active Script task.

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh85b$1eh$1 (AT) news (DOT) mch.sbs.de...
Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
It is hardly ever, if indeed ever, that you will have a package that
calls
individual tasks in a user defined manner on demand. It is more
common
to
have the workflow determine when and how a task is executed and the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris













Reply With Quote
  #7  
Old   
Christian Weber
 
Posts: n/a

Default Re: ExecuteSQLTask - 09-08-2003 , 03:18 AM



Hi,

i just change the Statement within a loop.
Between each change i have to run the modified ExecuteSQLTask.

greets

chris



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:esysT$ddDHA.3836 (AT) tk2msftngp13 (DOT) phx.gbl...
Quote:
Then change the statement in a loop.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjhc1j$h1k$1 (AT) news (DOT) mch.sbs.de...
Hello,
this is not what i want.
i have to change the sqlstatement of the ExecuteSQLTask multiple and run
it
multiple.

greets

chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:OYTzmcddDHA.1532 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Have the ExecuteSQL task follow on using an On Success constraint from
the
Active Script task.

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh85b$1eh$1 (AT) news (DOT) mch.sbs.de...
Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
It is hardly ever, if indeed ever, that you will have a package
that
calls
individual tasks in a user defined manner on demand. It is more
common
to
have the workflow determine when and how a task is executed and
the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris















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

Default Re: ExecuteSQLTask - 09-08-2003 , 03:35 AM



How is the changed statement stored ?
How are you firing the package ?



--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote

Quote:
Hi,

i just change the Statement within a loop.
Between each change i have to run the modified ExecuteSQLTask.

greets

chris



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:esysT$ddDHA.3836 (AT) tk2msftngp13 (DOT) phx.gbl...
Then change the statement in a loop.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjhc1j$h1k$1 (AT) news (DOT) mch.sbs.de...
Hello,
this is not what i want.
i have to change the sqlstatement of the ExecuteSQLTask multiple and
run
it
multiple.

greets

chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:OYTzmcddDHA.1532 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Have the ExecuteSQL task follow on using an On Success constraint
from
the
Active Script task.

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh85b$1eh$1 (AT) news (DOT) mch.sbs.de...
Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so
far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
It is hardly ever, if indeed ever, that you will have a package
that
calls
individual tasks in a user defined manner on demand. It is more
common
to
have the workflow determine when and how a task is executed and
the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris

















Reply With Quote
  #9  
Old   
Christian Weber
 
Posts: n/a

Default Re: ExecuteSQLTask - 09-08-2003 , 03:54 AM



Set sqltask = oPkg.Tasks("DTSTask_DTSExecuteSQLTask_1").CustomTa sk
sqltask.SQLStatement = cmd

the package is fired via a external perl-script.....

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:u6RziQedDHA.3240 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Quote:
How is the changed statement stored ?
How are you firing the package ?



--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjhdvg$oiu$1 (AT) news (DOT) mch.sbs.de...
Hi,

i just change the Statement within a loop.
Between each change i have to run the modified ExecuteSQLTask.

greets

chris



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:esysT$ddDHA.3836 (AT) tk2msftngp13 (DOT) phx.gbl...
Then change the statement in a loop.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjhc1j$h1k$1 (AT) news (DOT) mch.sbs.de...
Hello,
this is not what i want.
i have to change the sqlstatement of the ExecuteSQLTask multiple and
run
it
multiple.

greets

chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:OYTzmcddDHA.1532 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Have the ExecuteSQL task follow on using an On Success constraint
from
the
Active Script task.

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh85b$1eh$1 (AT) news (DOT) mch.sbs.de...
Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so
far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im
Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
It is hardly ever, if indeed ever, that you will have a
package
that
calls
individual tasks in a user defined manner on demand. It is
more
common
to
have the workflow determine when and how a task is executed
and
the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in
message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris



















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

Default Re: ExecuteSQLTask - 09-08-2003 , 04:02 AM



Then you can do the loop in Perl. If you MUST execute this in a DTS package
then have the task in a package by itself and simply fire the package. If
this is your only goal would you not be better simply establishing a
connection to SQL Server (No DTS) and executing the statement ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote

Quote:
Set sqltask = oPkg.Tasks("DTSTask_DTSExecuteSQLTask_1").CustomTa sk
sqltask.SQLStatement = cmd

the package is fired via a external perl-script.....

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:u6RziQedDHA.3240 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
How is the changed statement stored ?
How are you firing the package ?



--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjhdvg$oiu$1 (AT) news (DOT) mch.sbs.de...
Hi,

i just change the Statement within a loop.
Between each change i have to run the modified ExecuteSQLTask.

greets

chris



"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:esysT$ddDHA.3836 (AT) tk2msftngp13 (DOT) phx.gbl...
Then change the statement in a loop.

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjhc1j$h1k$1 (AT) news (DOT) mch.sbs.de...
Hello,
this is not what i want.
i have to change the sqlstatement of the ExecuteSQLTask multiple
and
run
it
multiple.

greets

chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:OYTzmcddDHA.1532 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Have the ExecuteSQL task follow on using an On Success
constraint
from
the
Active Script task.

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in message
news:bjh85b$1eh$1 (AT) news (DOT) mch.sbs.de...
Hello,

i have an ExecuteSQLTask with a SQLStatement.

I try to change the SQLStatement via ActiveScript (it works so
far),
and then i want to start this task via ActiveScript.

greets

Chris

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im
Newsbeitrag
news:uWTT7KddDHA.2672 (AT) tk2msftngp13 (DOT) phx.gbl...
It is hardly ever, if indeed ever, that you will have a
package
that
calls
individual tasks in a user defined manner on demand. It is
more
common
to
have the workflow determine when and how a task is executed
and
the
package
is executed not the task itself.

What are you trying to do ?

--

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



"Christian Weber" <christian.weber (AT) siemens (DOT) com> wrote in
message
news:bjh7bm$rer$1 (AT) news (DOT) mch.sbs.de...
Hello!

How can i start an ExecuteSQLTask?


greets

chris





















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.