Import excel into sql server

7 views
Skip to first unread message

nag

unread,
Dec 28, 2009, 8:17:31 AM12/28/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting

hi friend
i tried following query for importing excel file to sql

INSERT INTO magazine
SELECT *
FROM OPENROWSET('Provider=Microsoft.Jet.OLEDB.4.0',
'Database=E:animals.xsl;Excel 8.0;HDR=YES',
'SELECT [FirstName], [LastName]
FROM [Employee1$]')

i got following errors
Server: Msg 7403, Level 16, State 1, Line 1
Could not locate registry entry for OLE DB provider
'Provider=Microsoft.Jet.OLEDB.4.0'.
please help me rectify the error
or let me know any other way of importing excel table

tnx

Benj Nunez

unread,
Dec 28, 2009, 7:31:17 PM12/28/09
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting

SeanJC

unread,
Jan 25, 2010, 7:50:50 PM1/25/10
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
If you are just importing excel into SQL Server its better to do it
using Management Studio.

Sean

Reply all
Reply to author
Forward
0 new messages