Tuesday, March 27, 2012
DTS question
where ? is mapped to the global rowset variableI have two different data sources.
I need to pull from source (1) to Souce (2).
The data pulled from souce(1) needs to be based on values in a table in source(2).
Select fields
from source(1)
where field1 in ( Table in source 2)
Is this possible with DTS?|||try this link
[BOL] Using Global Variables with DTS Packages
and
[BOL] Execute SQL Task look lower into the doc for "Populating a Single Global Variable with an Entire Rowset"|||I have the global variable (rowset) populated, but how do I use it in my where condition?
where field in ( ? ) I get an error when I map the parm to the global rowset variable.
Wednesday, March 21, 2012
DTS package with parameters
I want to create DTS package which can accept a parameter and export / import data which match the parameter value. is it possible? if yes , can you please tell me the steps.
thanks in advance.
Satya - do not refer me to SQLDTS.com , not much help there .
RamI am not clear on what you are trying to do...
What are the source and destination connections in both the import and export scenario.
Are you trying to conditionally import or export data based on some Parameter? How are you executing the package?
DTS packages can take input parameters and return paramters via Package Variables (inner and outer). You can use an Execute package task to pass parameters to a nested DTS package which contains your logic for import or export. Depending on the complexity of your process you could create one master package (to manage the process) and two "child" packages: one for Import and one for export.
See books online for more info on the Execute Package Task...
CPNsqlsql
Tuesday, February 14, 2012
DTS global variable question
I am having difficulty with global variables in DTS. Specifically
I would like to instantiate a global variable with a value obtained
from a SQL database. I have created the global variable through the
package properties section. Now i need to instantiate it with a value
from the database. Should i use an ActiveX Script Task to accomplish
this? If so can someone send me a link that shows the best way of
doing this?
Thanks,
BillyAn ActiveX script task will do the job but you could also use a
DynamicProperties task if you are using SQL 2000. This enables you to set
properties at run time without writing code.
See http://www.sqldts.com/default.aspx?205 for an ActiveX script for an
example as sell as other useful DTS info.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Billy Cormic" <billy_cormic@.hotmail.com> wrote in message
news:dd2f7565.0409261325.4dda82fd@.posting.google.c om...
> Hello,
> I am having difficulty with global variables in DTS. Specifically
> I would like to instantiate a global variable with a value obtained
> from a SQL database. I have created the global variable through the
> package properties section. Now i need to instantiate it with a value
> from the database. Should i use an ActiveX Script Task to accomplish
> this? If so can someone send me a link that shows the best way of
> doing this?
> Thanks,
> Billy