Results 1 to 2 of 2

Thread: Extract relationship from sql server...

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    12

    Red face

    Hi,
    I have a problem....
    I am connect with adodb with sql server.
    In this data base i have many tables, and all tables
    have a Primary Key, a Foreign Key and they are relationship.
    How I do for extract the relationship between tables and their Key (if they are primary or foreign key)?
    I know that there is a command (or property) in Visual Basic6 that say me this things... but I don't know wich is the command!
    thanks and sorry for my english

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    You could execute the stored procedure "sp_help", passing the table name as a parameter (ie; sp_help tablename).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width