Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > ADO Data > Transfer data f...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 4218 of 4320
Post > Topic >>

Transfer data from Excel to SQL Server

by =?Utf-8?B?QmlsbHkgUm9nZXJz?= <BillyRogers@[EMAIL PROTECTED] Apr 25, 2008 at 07:19 AM

What's the best way to transfer data from Excel to SQL Server? 

I have the SQL server table set up and the spreadsheet is set up like the 
table with field names in the first row and data below. There are over
3000 
rows and the number of rows could vary each month when the process is run.


Should I loop through each row and execute a SQL INSERT statement (using 
ADO) for each row? 

Should I add all 3000 rows to a recordset and then use the Update method
of 
the recordset? 

Or is there some other method that's better for moving the data? 

-- 
"Just because you don''t know how to do something doesn''t mean it can''t
be 
done"

Billy Rogers

Currently Using  SQL Server 2000, Office 2000  and Office 2003

http://thedataguru.blogspot.com/
 




 5 Posts in Topic:
Transfer data from Excel to SQL Server
=?Utf-8?B?QmlsbHkgUm9nZXJ  2008-04-25 07:19:00 
Re: Transfer data from Excel to SQL Server
"Bob Barrows [MVP]&q  2008-04-25 10:28:35 
Re: Transfer data from Excel to SQL Server
"Ralph" <nt_  2008-04-28 17:33:18 
Re: Transfer data from Excel to SQL Server
"Barry Seymour"  2008-04-28 14:19:43 
Re: Transfer data from Excel to SQL Server
"Bob Barrows [MVP]&q  2008-04-28 17:38:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:56:19 CST 2008.