dbTalk Databases Forums  

DTS Connection properties

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


Discuss DTS Connection properties in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Erik Torkildsen
 
Posts: n/a

Default DTS Connection properties - 01-24-2005 , 05:54 AM






Hello,
can anyone point me to a list of the various DTS.Connection properties. I
need to know which properties to set to import a fixed field file.

Thanks,
Erik



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

Default Re: DTS Connection properties - 01-24-2005 , 02:16 PM






Best thing to do is save a package containing a Flat File Connector as a VB
module and read the way MS do it.

Really very good as well.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Erik Torkildsen" <erik.torkildsen (AT) proscon (DOT) no> wrote

Quote:
Hello,
can anyone point me to a list of the various DTS.Connection properties. I
need to know which properties to set to import a fixed field file.

Thanks,
Erik




Reply With Quote
  #3  
Old   
Erik Torkildsen
 
Posts: n/a

Default Re: DTS Connection properties - 01-25-2005 , 02:43 AM



I want to dynamically build the DTS package for each fixed field file
import, so I don't think I can do it that way. For delimited files I have
been able to do this by setting these values on the DTS connection and using
DTS.DataPumpTask to get the data from file :

..ConnectionProperties.Item("Data Source").Value = sNewFileAndPathName
..ConnectionProperties.Item("Mode").Value = 1
..ConnectionProperties.Item("Row Delimiter").Value = vbCrLf
..ConnectionProperties.Item("File Format").Value = 1
..ConnectionProperties.Item("Column Delimiter").Value = oFileImpDef.ColSep
..ConnectionProperties.Item("File Type").Value = 1
..ConnectionProperties.Item("Skip Rows").Value = 0
..ConnectionProperties.Item("Text Qualifier").Value =
oFileImpDef.TextQualifier
..ConnectionProperties.Item("First Row Column Name").Value = False

But I have not found a list or documentation of these connection properties
anywhere, but just found them by googling...

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> skrev i melding
news:ekAbGElAFHA.2572 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
Best thing to do is save a package containing a Flat File Connector as a
VB module and read the way MS do it.

Really very good as well.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Erik Torkildsen" <erik.torkildsen (AT) proscon (DOT) no> wrote in message
news:uHYrntgAFHA.3256 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hello,
can anyone point me to a list of the various DTS.Connection properties. I
need to know which properties to set to import a fixed field file.

Thanks,
Erik






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

Default Re: DTS Connection properties - 01-25-2005 , 12:34 PM



Can you not build a Fixed Field size file import in a package, save to VB
and then look at how to do it.
That's how I would do it.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Erik Torkildsen" <erik.torkildsen (AT) proscon (DOT) no> wrote

Quote:
I want to dynamically build the DTS package for each fixed field file
import, so I don't think I can do it that way. For delimited files I have
been able to do this by setting these values on the DTS connection and
using DTS.DataPumpTask to get the data from file :

.ConnectionProperties.Item("Data Source").Value = sNewFileAndPathName
.ConnectionProperties.Item("Mode").Value = 1
.ConnectionProperties.Item("Row Delimiter").Value = vbCrLf
.ConnectionProperties.Item("File Format").Value = 1
.ConnectionProperties.Item("Column Delimiter").Value = oFileImpDef.ColSep
.ConnectionProperties.Item("File Type").Value = 1
.ConnectionProperties.Item("Skip Rows").Value = 0
.ConnectionProperties.Item("Text Qualifier").Value =
oFileImpDef.TextQualifier
.ConnectionProperties.Item("First Row Column Name").Value = False

But I have not found a list or documentation of these connection
properties anywhere, but just found them by googling...

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> skrev i melding
news:ekAbGElAFHA.2572 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Best thing to do is save a package containing a Flat File Connector as a
VB module and read the way MS do it.

Really very good as well.

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new
stuff.
www.konesans.com - Consultancy from the people who know


"Erik Torkildsen" <erik.torkildsen (AT) proscon (DOT) no> wrote in message
news:uHYrntgAFHA.3256 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
Hello,
can anyone point me to a list of the various DTS.Connection properties.
I need to know which properties to set to import a fixed field file.

Thanks,
Erik








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.