Member
164
Points
|
Replied on
03 Sep 2013 06:45 AM IST
SELECT * INTO Your_Table_Name
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel
8.0;Database=C:\Folder\MyFile.xls',yes"> 'SELECT * FROM [Sheet1$]')
|
Member
152
Points
|
Replied on
03 Sep 2013 10:34 AM IST
exec sp_configure 'show advanced options', 1 RECONFIGURE; exec sp_configure 'Ad Hoc Distributed Queries', 1 RECONFIGURE; SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Users\Admin\Desktop\247ProjectMonitoring\UploadExcelfile\Test.xls;HDR=YES;IMEX=1;', 'SELECT * FROM [Sheet1$]')
|