I have a situation in which I need to append data from comma-delimited text files to varying tables on SQL Server 2000. I am currently using Bulk Insert in a DTS Package to accomplish this. The problem is that some of the tables have primary key fields or Date fields that have default values and are not part of the file I am trying to import.
***********************************************************
I know that you get around this by using a format file
***********************************************************
however, my boss doesn't want to use a format file because he doesn't want to have to create one every time a new table is created.
All of my reasearch says that bulk insert is the way to go. What other options do I have that wouldn't involve a format file of some sort?
Oh, by the way, the method needs to be flexible enough so that one DTS Package (or stored proceedure) can handle appending to multiple tables in multiple databases possibly on multiple servers.
Thanks for your help.
Phil
***********************************************************
I know that you get around this by using a format file
***********************************************************
however, my boss doesn't want to use a format file because he doesn't want to have to create one every time a new table is created.
All of my reasearch says that bulk insert is the way to go. What other options do I have that wouldn't involve a format file of some sort?
Oh, by the way, the method needs to be flexible enough so that one DTS Package (or stored proceedure) can handle appending to multiple tables in multiple databases possibly on multiple servers.
Thanks for your help.
Phil