dbTalk Databases Forums  

Bulk Insert with character file and prefix length

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Bulk Insert with character file and prefix length in the microsoft.public.sqlserver.clients forum.



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

Default Bulk Insert with character file and prefix length - 04-16-2007 , 07:46 AM






Hi,
I want to use bulk insert and would really like to use character file
because it would mean less work from our application, but we cannot use
field terminator nor row terminator because any combinaison of printable
chars could possibly appear in one of our values. So we thought it could be
a good idea to use prefix length as indicated here :
http://msdn2.microsoft.com/en-us/library/ms190779.aspx. But no matter how we
try to format the file, nothing works... Does anyone have an example file
for this? And if noone does, does anyone have a link to how we must format
our dates, decimal, doubles, et al. for native file format? because .NET
formats do not serialize the same way as SQL Server does.

Thanks

ThunderMusic



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.