Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Bulk Insert And Text Qualifiers

Author  Topic 

karuna
Aged Yak Warrior

582 Posts

Posted - 2005-11-14 : 07:30:08
I have a table like this
Col1 varchar(10)
Col2 varchar(10)
Col3 numeric(5,2)

The text file I use to bulk insert the data is something like this.
"A1000B1234" "A1000B1234" "2000.13" The file is delimited with tab. Now how do I specify in the query to ignore the double qoutes when bulk inserting?

Thanks

Karunakaran

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2005-11-14 : 08:32:46
Refer last point here
http://www.nigelrivett.net/SQLTsql/BCP_quoted_CSV_Format_file.html

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2005-11-14 : 08:52:07
No way without format files?

Thanks

Karunakaran
Go to Top of Page
   

- Advertisement -