December 2, 2010 at 7:23 am
Anyone has TSQL to findout index columns and those columns datatype?
I tried SELECT * FROM SYS.INDEXES but it has no info of that.
December 2, 2010 at 7:53 am
same datatype as the column it's on....there's rare exceptions where you make an index on a persisted calculated column that is the substring of a column, so then it's the length of the substring.
Lowell
December 2, 2010 at 9:35 am
Query sys.indexes, sys.index_columns and sys.columns. You'll also need a join to sys.types.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply