Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get SQL Server 2005 Database/Table Schema
Message
 
 
À
27/07/2011 16:12:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows Server 2003
Database:
MS SQL Server
Divers
Thread ID:
01519380
Message ID:
01519399
Vues:
30
>>>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?
>>
>>Look at INFORMATION_SCHEMA.Columns and INFORMATION_SCHEMA.Tables views.
>
>Those should give me what I need. Thanks.

You're welcome.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform