Does anyone know how I can see which are the primary & foreign keys in a table?
EDIT: Thanks for all the responses. I was looking for a SQL Query to do that. Rig
You can start with:
SELECT Table_Name as [TableName], Column_Name as [ColumnName], Constraint_Name as [Constraint], Table_Schema as [Schema] FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE ORDER BY [TableName], [ColumnName]
(you can filter then by tableName)