Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Missing OLEDB drivers in Excel 2000 (9.0.28.12) | Excel Discussion (Misc queries) | |||
OleDB Provider for Excel 2007 Binary (.xlsb) | Excel Discussion (Misc queries) | |||
OLE DB provider cannot connect to Excel 2007 with 400 columns | Excel Discussion (Misc queries) | |||
Using OleDB to get data from Excel | Excel Discussion (Misc queries) | |||
Connectiong to an Excel Workbook with MSDASQL provider | Excel Programming |