Quantcast
Viewing latest article 1
Browse Latest Browse All 8

import data from excel2007 sheet to slserver 2008 table in C#

You can use OPENDATASOURCE command

SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',
   'Data Source=c:\book1.xls;Extended Properties=Excel 8.0')...Sheet1$

Or creating a linked server to EXCEL file

Better way read on security of linked server from BOL
Linked Server Properties (Security Page)


Best Regards,Uri Dimant SQL Server MVP,http://sqlblog.com/blogs/uri_dimant/

MS SQL optimization: MS SQL Development and Optimization
MS SQL Blog: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance


Viewing latest article 1
Browse Latest Browse All 8

Trending Articles