Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get SQL Server 2005 Database/Table Schema
Message
From
27/07/2011 15:48:47
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Get SQL Server 2005 Database/Table Schema
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Database:
MS SQL Server
Miscellaneous
Thread ID:
01519380
Message ID:
01519380
Views:
73
I'm creating a utility that will be used to periodically synchronize a VFP database with a SQL Server 2005 Express database (SugarCRM). As part of that I'm building a cross-reference of tables and columns between the two databases.

In VFP9, I can connect to the SugarCRM database as sa so I can do anything I want. I believe there are system stored procedure(s) that can be used to extract schema information such as:

- list of tables in the database
- list of columns of a given table
- values of various attributes of a column

There seem to be literally hundreds of system stored procedures. Can someone recommend one(s) that could help me get the schema information I need?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Next
Reply
Map
View

Click here to load this message in the networking platform