Below is the query on finding the Index fields of the table
Returns Primary key
-
select * from sys.objects where parent_object_id = object_id(N'TABLE_1')
Returns All
-
SELECT * FROM SYS.index_columns where object_id= object_id(N'TABLE_1')
Below is the query on finding the Index fields of the table
Returns Primary key
Returns All
constraints, index, sql server server
This entry was posted on Thursday, August 26th, 2010 at 2:58 pm and is filed under Constraint, Database. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS)