Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

T-SQL to return a table's Key Coulmn(s)

Status
Not open for further replies.

CrazyBishop

Programmer
Feb 11, 2001
1
US
I am writing a trigger and I need to have
the key field names of a table whose name
I am given returned.

i.e. I want to return "Order_ID" and "Detail_ID"
when I feed the T-SQL the Order_Detail table.

again for clarity I am not asking for

Select Order_ID, Detail_ID FROM Order_Detail.

Thanx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top