![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Why cant MS provide simple examples in the DTS help files. I learn much faster by example? Can anyone provide me a simple vbscript example of within the ActiveX Script Object how to Execute an existing SQL Task Object passing it Input Parameters? I dont have time to make sense of the MS documentation. I need examples. Thanks |
#3
| |||
| |||
|
|
You have provided scant information for us with which to work.. www.SQLDTS.com has a raft of code samples for you. Have a look here Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - SQL Server 2005 Integration Services. www.Konesans.com "Jamie Carper" <JamieCarper (AT) discussions (DOT) microsoft.com> wrote Why cant MS provide simple examples in the DTS help files. I learn much faster by example? Can anyone provide me a simple vbscript example of within the ActiveX Script Object how to Execute an existing SQL Task Object passing it Input Parameters? I dont have time to make sense of the MS documentation. I need examples. Thanks |
#4
| |||
| |||
|
|
You have provided scant information for us with which to work.. www.SQLDTS.com has a raft of code samples for you. Have a look here Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - SQL Server 2005 Integration Services. www.Konesans.com "Jamie Carper" <JamieCarper (AT) discussions (DOT) microsoft.com> wrote Why cant MS provide simple examples in the DTS help files. I learn much faster by example? Can anyone provide me a simple vbscript example of within the ActiveX Script Object how to Execute an existing SQL Task Object passing it Input Parameters? I dont have time to make sense of the MS documentation. I need examples. Thanks |
#5
| |||
| |||
|
|
Maybe I am not getting it... I tried searching for an example on your site first, then on the MSDN site. I am not turning up anything useful at this time. I thought I made my requirements clear. But I will explain again. 1 - I have an ActiveX Scipt object 2 - I have a SQL Task object 3 - Within the Script object I am looping thru some recursive code picking up locations and names of datafiles in a specified area. I then pass this info onto another DTS package for importing and processing. 4 - I also wish to log what files I am importing as well as the file dates into a separate table 5 - To do this I am wanting, at the point in my Script object where I call the DTS, to additionally Execute the SQL Task object passing it the discovered Filename and Date 6 - The SQL Task object makes a SQL call to INSERT the log data I need a simple code example on how to accomplish point 5. I have everything else up and running (thanks in part to some of your other examples on the site). Thanks. "Allan Mitchell" wrote: You have provided scant information for us with which to work.. www.SQLDTS.com has a raft of code samples for you. Have a look here Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - SQL Server 2005 Integration Services. www.Konesans.com "Jamie Carper" <JamieCarper (AT) discussions (DOT) microsoft.com> wrote in message news:E2B370B0-9174-4D22-881D-5BD64D379DBE (AT) microsoft (DOT) com... Why cant MS provide simple examples in the DTS help files. I learn much faster by example? Can anyone provide me a simple vbscript example of within the ActiveX Script Object how to Execute an existing SQL Task Object passing it Input Parameters? I dont have time to make sense of the MS documentation. I need examples. Thanks |
#6
| |||
| |||
|
|
By the sounds of it then you need to loop around until you have finished right? Looping, Importing and Archiving (http://www.sqldts.com/default.aspx?246) How to loop through a global variable Rowset (http://www.sqldts.com/default.aspx?298) Your original explanation said you wanted to execute a "SQL Task" (will presume ExecuteSQL task) by passing a value from the active Script task Using the article I sent would allow you to do that. Your subsequent explanation is far more detailed and clearer -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - SQL Server 2005 Integration Services. www.Konesans.com "Jamie Carper" <JamieCarper (AT) discussions (DOT) microsoft.com> wrote Maybe I am not getting it... I tried searching for an example on your site first, then on the MSDN site. I am not turning up anything useful at this time. I thought I made my requirements clear. But I will explain again. 1 - I have an ActiveX Scipt object 2 - I have a SQL Task object 3 - Within the Script object I am looping thru some recursive code picking up locations and names of datafiles in a specified area. I then pass this info onto another DTS package for importing and processing. 4 - I also wish to log what files I am importing as well as the file dates into a separate table 5 - To do this I am wanting, at the point in my Script object where I call the DTS, to additionally Execute the SQL Task object passing it the discovered Filename and Date 6 - The SQL Task object makes a SQL call to INSERT the log data I need a simple code example on how to accomplish point 5. I have everything else up and running (thanks in part to some of your other examples on the site). Thanks. "Allan Mitchell" wrote: You have provided scant information for us with which to work.. www.SQLDTS.com has a raft of code samples for you. Have a look here Global Variables and SQL statements in DTS (http://www.sqldts.com/default.aspx?205) -- Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. www.SQLIS.com - SQL Server 2005 Integration Services. www.Konesans.com "Jamie Carper" <JamieCarper (AT) discussions (DOT) microsoft.com> wrote in message news:E2B370B0-9174-4D22-881D-5BD64D379DBE (AT) microsoft (DOT) com... Why cant MS provide simple examples in the DTS help files. I learn much faster by example? Can anyone provide me a simple vbscript example of within the ActiveX Script Object how to Execute an existing SQL Task Object passing it Input Parameters? I dont have time to make sense of the MS documentation. I need examples. Thanks |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |