Hi,I have a sql query that reads data from excel file. Currently the sheetname and excel path are hard-coded. How can I change them to dynamic (using parameters)?ThanksSELECT left (cast(convert(varchar , [division description] )as varchar (max)) ,charindex(' ',cast(convert(varchar , [division description] )as varchar (max)),1)-1) as itemcatalog_businessunit_descriptionINTO #tmptestFROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=c:\test\Catalog_big.xls', ' SELECT * FROM [catalog SU08$]')declare @pathname varchar (3000)set @pathname='[catalog SU08$]'Whisky-my beloved dog who died suddenly on the 29/06/06-I miss u so much.