PDA

Click to See Complete Forum and Search --> : Extract Relationships from Tables in SQL Server.....


Samuel
Sep 27th, 2000, 03:17 AM
Hi,
I am connecting with SQL server with ADODB(odbc) and I am working with vb6.
I must extract from sql server the relationships wich there are between tables and i must extract which are the Primary Key and the Foreign Key from the tables.
How can I do it? Can you help me with a little example?
I want make it only by code of Visual basic 6

thanks

RIVES
Sep 27th, 2000, 02:40 PM
Query on the sysobjects table in the SQL Server and just look from there.