Sep 11, 2001 #1 coolphilboy Technical User Joined Aug 19, 2001 Messages 19 Location PH How do i Bulk Insert a text file of Fixed Field length, no delimeters, to an sql table? need it very badly. TIA.
How do i Bulk Insert a text file of Fixed Field length, no delimeters, to an sql table? need it very badly. TIA.
Sep 12, 2001 #2 Tim1 Programmer Joined Mar 27, 2001 Messages 242 Location GB Hiya, You need to construct a format file that will tell SQL Server where to find each data piece. It may be worth trying to search for format files under the FAQ section, or try looking on the internet. I don't know how different it is, but Sybase have a very good section on BCP format files if Microsoft don't. http://www.sybase.com HTH Tim Upvote 0 Downvote
Hiya, You need to construct a format file that will tell SQL Server where to find each data piece. It may be worth trying to search for format files under the FAQ section, or try looking on the internet. I don't know how different it is, but Sybase have a very good section on BCP format files if Microsoft don't. http://www.sybase.com HTH Tim
Sep 12, 2001 #3 RickCole Technical User Joined May 9, 2001 Messages 349 Location GB If you are running SQL Server 7 or above and unfamiliar with BCP then use DTS. You can find a good source of information on DTS at http://www.sqldts.com Rick. Upvote 0 Downvote
If you are running SQL Server 7 or above and unfamiliar with BCP then use DTS. You can find a good source of information on DTS at http://www.sqldts.com Rick.
Sep 12, 2001 #4 tlbroadbent MIS Joined Mar 16, 2001 Messages 9,982 Location US Check these resources for info on format files and Bulk Insert. Using Format Files http://msdn.microsoft.com/library/en-us/adminsql/ad_impt_bcp_9yat.asp BULK INSERT http://msdn.microsoft.com/library/en-us/tsqlref/ts_ba-bz_4fec.asp Preparing Data for Importing and Exporting http://msdn.microsoft.com/library/en-us/adminsql/ad_impt_bcp_1njt.asp DTS: Bulk Insert Task http://msdn.microsoft.com/library/en-us/dtssql/dts_elemtsk2_5m0b.asp Upvote 0 Downvote
Check these resources for info on format files and Bulk Insert. Using Format Files http://msdn.microsoft.com/library/en-us/adminsql/ad_impt_bcp_9yat.asp BULK INSERT http://msdn.microsoft.com/library/en-us/tsqlref/ts_ba-bz_4fec.asp Preparing Data for Importing and Exporting http://msdn.microsoft.com/library/en-us/adminsql/ad_impt_bcp_1njt.asp DTS: Bulk Insert Task http://msdn.microsoft.com/library/en-us/dtssql/dts_elemtsk2_5m0b.asp