Good Job this kind of operation does not work with formatted excel
sheet file because you have merged cells images and other staff.
so u have to use special controls or using office automation to extract
data from various cells that for sure not in the first row
I've never seen anyone call an SQL Server using Microsoft.Jet.
But seriously: Should the title say "Microsoft Access" or should the code be modified to access SQL Server?
I am hesitant to consider the validity of the code when I see errors this quick in this short of an example.
I am not used Microsoft jet to connect to MS SQL Sever. i am used this Microsoft jet to connect to MS XL sheet.
This is the Query used to send the Data from XL Sheet to Database. I got this query in Microsoft site.
INSERT INTO emp SELECT * from OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\text.xls','SELECT * FROM [sheet1$]')
Please send your comments to Microsoft.
This is not the way of giving the reply on somebodys article.
Ranjita MhatrePosted Aug 26, 2010, 2:36 AM EDT
I am sweetu; thanks for this code
Easwaran ParamasivamPosted Aug 10, 2010, 11:11 PM EDT
Nice one
MohammedPosted Jun 1, 2009, 9:28 PM EDT
Good Job this kind of operation does not work with formatted excel sheet file because you have merged cells images and other staff. so u have to use special controls or using office automation to extract data from various cells that for sure not in the first row
Joe PoolPosted May 29, 2009, 10:19 AM EDT
I've never seen anyone call an SQL Server using Microsoft.Jet. But seriously: Should the title say "Microsoft Access" or should the code be modified to access SQL Server? I am hesitant to consider the validity of the code when I see errors this quick in this short of an example.