hi Raj
Thanks code for export excel. I have tried and this sp export only one column, it works fine. If I add multiple column, like code, name, address,
Insert into OPENDATASOURCE('Microsoft.ACE.OLEDB.12.0',
'Data Source=D:\abcReports\importdata\Book1.xlsx;Extended Properties=Excel 12.0')...[Sheet1$]
SELECT code,name,address FROM dbo.tbl_temp
it shows the error
Msg 7399, Level 16, State 1, Line 2
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7303, Level 16, State 1, Line 2
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "(null)".
Pls do you have any idea to export Multiple column
Thank you
maideen