Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 7th, 2007, 05:26 AM
abhijeetdighe abhijeetdighe is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 2 abhijeetdighe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 26 sec
Reputation Power: 0
Skip rows in bulk insert

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,there 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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Skip rows in bulk insert


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway