Re: How do I dynamically change output text file properties?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Tue, 20 Feb 2007 17:03:58 -0600, "LarryKruse"
<hfdsweblizard@xxxxxxxxxxx> wrote:

I have a series of 30 stored procedures which extract data from a SQL Server
warehouse.

The procedures extract the data and I can individually create a DTS package
which writes the result set to a .csv text file. (These files will be
imported into a 3rd party package.)

What I'm trying to do is to come up with a way that I can dynamically change
the text file name dynamically as I loop through a list of the 30 stored
procedures.

I can find lots of DTS sample code showing how to manipulate the properties
of a destination source when that source is a SQL Server table, but nothing
that shows how to access even the filename of the Destination Text file
properties.

Has anyone done this?

Sure.

You can use a dynamic properties task to browse a text file
destination, then use the task or code to set the properties.

J.

.



Relevant Pages

  • Re: Timeout on a task?
    ... loss. ... > We're using VB6 to use Automation to write a DTS package in memory, ... with SQL Server 2000 as the destination. ... > For smaller feeds that process faster, ...
    (microsoft.public.sqlserver.dts)
  • RE: Resultat in eine Textdatei speichern
    ... Destination wählen ... Nun hast du ein DTS Package, ... hier hinein das gleiche SQL von der Prozedur genommen. ...
    (microsoft.public.de.sqlserver)
  • Leading Zero Is Dropped
    ... I have a DTS package that has an Excel spreadsheet as the source and SQL ... Server database table as the destination. ... Some zip codes have leading zeros but when using a simple Copy Column ...
    (microsoft.public.sqlserver.dts)
  • Variable text file destination name
    ... I have a DTS package that creates a series of text files ... Text File (Destination) Connection ... I can dynamically change all other types of ...
    (microsoft.public.sqlserver.dts)