all groups > sql server programming > march 2007 >
You're in the

sql server programming

group:

Import named range or specific cells from Excel into SQL Server


Import named range or specific cells from Excel into SQL Server J
3/9/2007 3:30:08 PM
sql server programming:
Hello. Sorry but I'm not sure where to ask this question but was wondering
if anyone could advise me the best way of importing data in a named range or
specific cells from Excel into SQL2K?

Thanks in advance.

J

Re: Import named range or specific cells from Excel into SQL Server AlterEgo
3/9/2007 4:16:49 PM
J,

As far as I know, there are only two ways:

1. Open the spreadsheet in a DTS ActiveX script. Iterate through the Excel
rows and create insert statements from the data.
2. Create a macro in the spreadsheet that iterates through the rows and
inserts data.

-- Bill

[quoted text, click to view]

Re: Import named range or specific cells from Excel into SQL Server J
3/12/2007 11:05:17 AM
It's strange I'm trying to use the OpenRowSet method but keep getting the
following:

Could not locate registry entry for OLE DB provider
'provider=Microsoft.Jet.OLEDB.4.0'.

Thanks for your reply Bill. Much appreciated.

J



[quoted text, click to view]

AddThis Social Bookmark Button