How To Use ADOX to Determine If a Primary Key Exists on a Table (258013)
The information in this article applies to:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.1 (GA)
- Microsoft Data Access Components 2.1 SP1
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Microsoft Data Access Components 2.8
This article was previously published under Q258013 SUMMARY In certain cases, you may want to determine if a Primary
Key is defined on an underlying database table and if so, what columns are used
in that Primary Key. You can obtain this information by using Microsoft ActiveX
Data Objects Extensions for Data Definition Language and Security (ADOX), which
is an extension to ActiveX Data Objects (ADO) that allows the manipulation of
the database schema. REFERENCES For more information on ADOX, see the ADOX Programmers
Reference Guide in the MDAC SDK available on the following Microsoft Web site
at:
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB258013 |
---|
|