January 7, 2011 at 12:49 am
Hi,
I want to extract data from excel file and insert into table from my stored procedure.
Path will be passed as input parameter to stored procedure.
I have to extarct data from the file.
Please help me. i don't want to use SSIS package or Import/export wizard.
January 7, 2011 at 1:13 am
http://support.microsoft.com/kb/306397/EN-US/
Edit: powered by SSC, the Google alternative 😉
January 7, 2011 at 2:22 am
Hi,
You can try this query:
SELECT * FROM
openrowset(
'Microsoft.Jet.OLEDB.4.0'
, 'Excel 8.0;database=PATH\FILE_NAME'
, [SheetName$]
);
there are also other posts on this regard: http://www.sqlservercentral.com/Forums/Topic684266-149-1.aspx
Regards,
Iulian
January 7, 2011 at 3:12 am
Thank you
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply