Re: DTS object model

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

From: Allan Mitchell (allan_at_no-spam.sqldts.com)
Date: 05/04/04


Date: Tue, 4 May 2004 19:40:46 +0100

You want to create one or manipulate one.

Whilst it is possible to build one completely from scratch I would probably
go with manipulating it.

So Say I have a Package called MyPackage and in there I have a
TextFileConnection. i can do this to grab a ref to the connection

Dim p As New DTS.Package

Dim cn As DTS.Connection

p.LoadFromSQLServer(".", , ,
DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection, , , ,
"MyPackage")

For Each cn In p.Connections

If cn.ProviderID = "DTSFlatFile" Then 'text File

'ideally you would know the name of the connection

End If

Next

p.UnInitialize()

-- 
-- 
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"RK" <anonymous@discussions.microsoft.com> wrote in message
news:123ED7F8-9268-4575-82EB-2303ADAF3629@microsoft.com...
> Hi,
>
> Can anyone tell me how to do: Text File connection to DTS in DTS object
model in vb.net?
>
> Thanks,
> RK


Relevant Pages

  • Problem with DTS
    ... The DTS have been created when connecting with an Windows Domain ... Enterprise Manager with the local Admin User and try to open the DTS I ... The simlest DTS has two SQL Server connection using a SQL User. ...
    (microsoft.public.sqlserver.server)
  • Re: need to learn how to get and put table on my web site (via ftp?)
    ... To make the connection to an FTP site to ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... www.SQLDTS.com - The site for all your DTS needs. ... > but can't understand how to make the connection to my ftp. ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS object model
    ... If that is all you want to do then why bother with DTS? ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) ... I want to create a text file connection and set the ...
    (microsoft.public.sqlserver.dts)
  • Re: Executeable using DTS
    ... >file to populate a sql server table and an access table. ... it just hangs and I have to ... I thought of creating a separate DTS ... The connection open point is probably true. ...
    (microsoft.public.sqlserver.dts)
  • Re: Designer is slooooooow
    ... known issue that DTS must enumerate the whole lot causing slow down. ... At first I thought it might be my connection to SQL Server, ... > one of these transforms it takes 28 seconds for the Transform Data Task ...
    (microsoft.public.sqlserver.dts)