Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Function to List Primary Key Columns for a Table

By kgayda,

This function lists the column name and column id for primary key columns for a given table.

Total article views: 1499 | Views in the last 30 days: 3
 
Related Articles
FORUM

column size

column size

FORUM

alter column

alter column

FORUM

Computed Column

Computed Column

FORUM

split columns

Split columns

FORUM

add column between two column

add column between two column

Tags
indexing    
miscellaneous    
t-sql    
 
Contribute