Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How can I find the primary key in a (SQLServer 2000) table?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-10-08 : 01:34:56
Dimitris writes "I work with VB (ADO and ADOX) but I can't find a way of retrieving the primary (and foreign) keys of a given table.
For example i have a table named Customers which has a primary key (e.g CustomerID).How can my VB program know that CustomerID is the PK ?
Thanks in advance ...
SQLServer 2000 and Win2000 Server sp2
"
   

- Advertisement -