Is this the best way to - Get a List of all Primary Keys in a Database - or is there something better?
SELECT KCU.TABLE_NAME AS Table_Name, KCU.CONSTRAINT_NAME A
The following syntax give you all constraints in database in use.
select * from sys.key_constraints;