sqlhints.com
How to get all the Tables with or without Primary Key Constraint in Sql Server?
We can write a query like below to get all the Tables with no Primary key constraint: SELECT T.name 'Table without Primary Key' FROM SYS.Tables T WHERE OBJECTPROPERTY(object_id,'Tabl…