Quantcast
Channel: import data from excel2007 sheet to slserver 2008 table in C#
Viewing all articles
Browse latest Browse all 8

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

$
0
0

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 all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>