Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to load csv file into table?

Status
Not open for further replies.

pmcmicha

Technical User
May 25, 2000
353
How do I load a csv file into a table without the transaction log filling up? I only have so much space allocated to the log portion of the database and it fills up when I try to bcp in a csv file.

Sybase Server 11.9.2

Thanks in advance.
 
Use bcp and set the batch size like below
bcp <data_base>..<table_name> in <file_name> -t, -U<user_name> -S<server_name> -P<password> -b<batch_size>

For example with -b1000 will commit every 1000 records so your transaction will not fill in. Obviously you can change the -b size

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top