dbTalk Databases Forums  

Gurus DTS

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


Discuss Gurus DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-28-2008 , 03:31 AM






Hi Fernando,

I believe if the csv file is missing the column completely (i.e. it is
not just null), you will need to completely reset your column
mappings. While this is possible at runtime in DTS, I have not done
it for a number of years and don't have the required script at hand.
If I remember correctly, to get this working you need to delete all
existing mappings (loop through the collection) and then remap them.
This causes DTS to re-evaluate the source file and hopefully will map
the columns correctly.

Another (and probably more reliable) method is to insert all the data
from the CSV into a single column in a staging table and to split the
data into the correct columns once you are able to determine the
column structure. There should be numerous examples of how to do this
in DTS - google "DTS ragged-right file".

Good luck!
J

Reply With Quote
  #22  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-28-2008 , 03:31 AM






Hi Fernando,

I believe if the csv file is missing the column completely (i.e. it is
not just null), you will need to completely reset your column
mappings. While this is possible at runtime in DTS, I have not done
it for a number of years and don't have the required script at hand.
If I remember correctly, to get this working you need to delete all
existing mappings (loop through the collection) and then remap them.
This causes DTS to re-evaluate the source file and hopefully will map
the columns correctly.

Another (and probably more reliable) method is to insert all the data
from the CSV into a single column in a staging table and to split the
data into the correct columns once you are able to determine the
column structure. There should be numerous examples of how to do this
in DTS - google "DTS ragged-right file".

Good luck!
J

Reply With Quote
  #23  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-28-2008 , 03:31 AM



Hi Fernando,

I believe if the csv file is missing the column completely (i.e. it is
not just null), you will need to completely reset your column
mappings. While this is possible at runtime in DTS, I have not done
it for a number of years and don't have the required script at hand.
If I remember correctly, to get this working you need to delete all
existing mappings (loop through the collection) and then remap them.
This causes DTS to re-evaluate the source file and hopefully will map
the columns correctly.

Another (and probably more reliable) method is to insert all the data
from the CSV into a single column in a staging table and to split the
data into the correct columns once you are able to determine the
column structure. There should be numerous examples of how to do this
in DTS - google "DTS ragged-right file".

Good luck!
J

Reply With Quote
  #24  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-28-2008 , 03:31 AM



Hi Fernando,

I believe if the csv file is missing the column completely (i.e. it is
not just null), you will need to completely reset your column
mappings. While this is possible at runtime in DTS, I have not done
it for a number of years and don't have the required script at hand.
If I remember correctly, to get this working you need to delete all
existing mappings (loop through the collection) and then remap them.
This causes DTS to re-evaluate the source file and hopefully will map
the columns correctly.

Another (and probably more reliable) method is to insert all the data
from the CSV into a single column in a staging table and to split the
data into the correct columns once you are able to determine the
column structure. There should be numerous examples of how to do this
in DTS - google "DTS ragged-right file".

Good luck!
J

Reply With Quote
  #25  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-28-2008 , 03:31 AM



Hi Fernando,

I believe if the csv file is missing the column completely (i.e. it is
not just null), you will need to completely reset your column
mappings. While this is possible at runtime in DTS, I have not done
it for a number of years and don't have the required script at hand.
If I remember correctly, to get this working you need to delete all
existing mappings (loop through the collection) and then remap them.
This causes DTS to re-evaluate the source file and hopefully will map
the columns correctly.

Another (and probably more reliable) method is to insert all the data
from the CSV into a single column in a staging table and to split the
data into the correct columns once you are able to determine the
column structure. There should be numerous examples of how to do this
in DTS - google "DTS ragged-right file".

Good luck!
J

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.