Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel schema using Jet OLEDB Provider?

Is there a way to query the Jet OLEDB Provider for Excel
to find out the COlumn Names and DataTypes of an Excel
worksheet? I want to import an Excel file into SQL Server
and need to create the table on the fly for that file and
set the column datatypes for that table. What would be
the best way to accomplish this? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 459
Default Excel schema using Jet OLEDB Provider?

Do you mean a temporary table or one that will persist? I think you
can only create a temporary SQL Server table from Excel. A temp table
will only persist as long as the connection that created it remains
open i.e. it is automatically deleted as soon as it is detected as
being no longer used. This is for security reasons. You will have to
create a permanent table from within SQL Server so you may as well do
the data import from there. Creating permanent tables on the fly is
not really how a RDBMS should be used, IMHO.

--

"mike" wrote in message ...
Is there a way to query the Jet OLEDB Provider for Excel
to find out the COlumn Names and DataTypes of an Excel
worksheet? I want to import an Excel file into SQL Server
and need to create the table on the fly for that file and
set the column datatypes for that table. What would be
the best way to accomplish this? Thanks!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing OLEDB drivers in Excel 2000 (9.0.28.12) Missing OLEDB drivers Blank OLAP Provide Excel Discussion (Misc queries) 1 March 12th 09 09:42 PM
OleDB Provider for Excel 2007 Binary (.xlsb) Rafael Excel Discussion (Misc queries) 1 December 19th 08 05:57 PM
OLE DB provider cannot connect to Excel 2007 with 400 columns kei Excel Discussion (Misc queries) 0 April 3rd 08 02:57 AM
Using OleDB to get data from Excel dvd00 Excel Discussion (Misc queries) 1 November 30th 04 04:32 PM
Connectiong to an Excel Workbook with MSDASQL provider Patrick Molloy[_3_] Excel Programming 0 July 10th 03 12:55 PM


All times are GMT +1. The time now is 08:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"