Aug 1, 2006 #1 klewis10367 MIS Joined Mar 12, 2003 Messages 678 Location US Does anyone know the sntax for an Openrowset trying to query anExcel Spreadsheet. I am using SQL 2000.
Does anyone know the sntax for an Openrowset trying to query anExcel Spreadsheet. I am using SQL 2000.
Aug 1, 2006 1 #2 SQLDenis Programmer Joined Oct 1, 2005 Messages 5,575 Location US SELECT * FROM OPENROWSET( 'Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\testing.xls','SELECT * FROM [Sheet1$]') Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/ Upvote 0 Downvote
SELECT * FROM OPENROWSET( 'Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\testing.xls','SELECT * FROM [Sheet1$]') Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Personal Blog:http://otherthingsnow.blogspot.com/
Aug 1, 2006 Thread starter #3 klewis10367 MIS Joined Mar 12, 2003 Messages 678 Location US Thank you that worked. Upvote 0 Downvote