Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy stru
Message
De
09/12/2004 18:18:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/12/2004 16:06:09
Joel Hokanson
Services Integration Group
Bellaire, Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00968126
Message ID:
00968177
Vues:
8
>I have a data file I download from a mainframe into a VFP dbf.
>
>I want to copy the structure from that dbf to a new table in SQL 2000.
>
>Is there a reasonable way to do that?
* with data
SELECT * into myTable
   FROM 
   OPENROWSET('VFPOLEDB', 'c:\myPath\myDatabase.dbc';'';'','select * from myVFPtable')

* w/o data
SELECT * into myTable
   FROM 
   OPENROWSET('VFPOLEDB', 'c:\myPath\myDatabase.dbc';'';'','select * from myVFPtable')
   WHERE 1=2
Is a dirty way.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform