dbTalk Databases Forums  

Re: Remove all transformations and redo auto-mapping (programmitcally)

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


Discuss Re: Remove all transformations and redo auto-mapping (programmitcally) in the microsoft.public.sqlserver.dts forum.



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

Default Re: Remove all transformations and redo auto-mapping (programmitcally) - 09-18-2003 , 03:12 AM







Hi Sam, I know you posted this DTS query a while back. There is however
a relatively simple cludge I use that works and I'd be very interested
to know how you resolved the issue yourself.



I would agree with Darrens' assessment simply handling imports in pure
DTS. Adding the file system object in your import routines will
increase your options considerably though.



If, for example your DTS destination is say a 255 column table made up
of nvarchar(255)'s you can always ensure that a text file (say a csv) of
any column length up to 255 columns (or the 8096 byte row limit) can be
imported into this table - irrespective of either data or column
variations.



Use the FileSystemObject (Allen Mitchel has some good examples -
http://www.sqldts.com) and add 255 column delimiters to the end of each
row, save the file and envoke the datapump. The datapump will ignore
rows in excess of the destination table limit.



This is not an elegant solution but it does enable me to provide a data
import mechanism for users when I have no idea what their data import
files looks like.



Cheers







In your DTS script use



I'd be very interested in how you resolved the issue since you posted
this message.


--
Posted via http://dbforums.com

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.