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
 Import/Export (DTS) and Replication (2000)
 Skip rows in Bulk Insert

Author  Topic 

abhijeetdighe
Starting Member

24 Posts

Posted - 2007-10-07 : 04:19:28
I am using bulk insert to upload .CSV file to SQL Server.
I want to skip 1st three rows of .CSV file.
I am using FIRSTROW = 4 in bulk insert but it is giving me error.
I think FIRSTROW works only if there are same no. of columns
First three rows are not having 4 columns,they are just like title.
Is there any solution for this.Plz give in details.
CSV file looks like -

STOCK EXCHANGE
----------------------------
NO. OF ORDERS : 100
ORDER_NO BROK_ID BRANCH USR_ID
2.00707 10412 31 18274
2.00707 10412 31 18274
2.00707 7536 5 4278
2.00707 7536 5 4278

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-10-07 : 10:28:06
what's the error? what does your BULK INSERT command look like?


elsasoft.org
Go to Top of Page
   

- Advertisement -