Archive for the ‘Constraint’ Category

How to find the Index fields of table in SQL Server

Below is the query on finding the Index fields of the table

Returns Primary key

  1. select * from sys.objects where parent_object_id = object_id(N'TABLE_1')

Returns All

  1. SELECT * FROM SYS.index_columns   where object_id= object_id(N'TABLE_1')

, ,

No Comments



SetPageWidth