Question : Is it possible to create a script that will retrieve data from excel?

Hi!

Is it possible to create a script that will retrieve data from excel then save it to the relevant tables in the database?
I am using SQL Server 2008.

Regards,

Joseph

Answer : Is it possible to create a script that will retrieve data from excel?

SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',
'Data Source=c:\UrExcelFile.xls;Extended Properties=Excel 8.0')...Sheet1$ -- put ur excel filename and sheetname, you need the 3 dots and the $ symbol
Random Solutions  
 
programming4us programming4us