Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy stru
Message
From
09/12/2004 18:18:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/12/2004 16:06:09
Joel Hokanson
Services Integration Group
Bellaire, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00968126
Message ID:
00968177
Views:
9
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform