Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel file to a temp sql table
Message
From
08/12/2004 07:22:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/12/2004 21:44:33
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Database:
MS SQL Server
Miscellaneous
Thread ID:
00967657
Message ID:
00967700
Views:
13
>I want to send an excel file to a temp sql table and manipulate
>the temp file with a table in a sql database.
>
>I will need to blow away the temp sql table when I am done.
>Please help.
>Thanks,
>Doug

Doug,
SQL server can open an xls file using Jet OLEDB provider (OpenDataSource). ie:
SELECT * into #temp
  FROM OpenDataSource( 
  'Microsoft.Jet.OLEDB.4.0',
  'Data Source="c:\myPath\myExcelFiel.xls";User ID=Admin;Password=;Extended properties=Excel 5.0')...sheetname$
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform