Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --execute step by step to process excel data into sqlserver using OPENROWSET/OPENDATASOURCE
- sp_configure
- sp_configure 'show advanced options',1
- reconfigure
- sp_configure 'Ad Hoc Distributed Queries',1
- reconfigure
- SELECT * INTO XLImport8 FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
- 'Excel 8.0;Database=D:StatusReport.xls', 'SELECT * FROM [Sheet1$]')
- select * from XLImport8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement