Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel file to a temp sql table
Message
De
08/12/2004 07:22:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/12/2004 21:44:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Database:
MS SQL Server
Divers
Thread ID:
00967657
Message ID:
00967700
Vues:
7
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform