DEV Community

LFC
LFC

Posted on

 

Query to get Primary Key & Foreign Key columns

I want to share this query for SQL Server to get PK, FK, and Data Type information from a DB Table.

Enjoy!

Latest comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.