SQL server query to get the list of columns in a table along with Data types, NOT NULL, and PRIMARY KEY constraints SQL server query to get the list of columns in a table along with Data types, NOT NULL, and PRIMARY KEY constraints database database