Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to upload Excel spreadsheet to SQL Server table?
Message
From
08/07/2005 01:34:29
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01030170
Message ID:
01030277
Views:
15
Alternative method is to use Openrowset() in SQL analyzer.
Sample:
SELECT * FROM   
 OPENROWSET('Microsoft.JET.OLEDB.4.0',  
 'Excel 8.0;Database=C:\yourexcelfilename.xls',  
 'SELECT * FROM [Sheet1$A3:A53]')
 
--or with selected cell area:

SELECT * FROM   
 OPENROWSET('Microsoft.JET.OLEDB.4.0',  
 'Excel 8.0;Database=C:\yourexcelfilename.xls',  
 'SELECT * FROM [Sheet1$A2:B5]') 
Steven
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform