Board index » delphi » How get primary keys from table ?

How get primary keys from table ?

Quote
>How can I get information about primary keys in table ?

>I have Delphi 4.0 and SQL-Server 6.5.

for information use

sp_table tablename //can't use properly in delphi cos it returns multiple
result sets

for in code use the system tables eg sysconstraints and sysobjects.

George Aligianis

 

Re:How get primary keys from table ?


Hi

How can I get information about primary keys in table ?

I have Delphi 4.0 and SQL-Server 6.5.

Thanks

Other Threads