Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to upload Excel spreadsheet to SQL Server table?
Message
De
08/07/2005 01:34:29
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01030170
Message ID:
01030277
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform