Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Nonclustered indexes Expand / Collapse
Author
Message
Posted Monday, February 22, 2010 8:24 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, January 22, 2016 10:41 AM
Points: 54, Visits: 220
How are null values handled on a column with a nonclustered index?

I was asked this question and didn't have an answer. Are the nulls stored in the index itself? Is there a way to view the contents of an index?

Thanks!
Post #870876
Posted Monday, February 22, 2010 11:43 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 9:52 AM
Points: 44,914, Visits: 42,954
They're stored just like any other value.

You can use DBCC PAGE to view data/index pages if you like. It's undocumented, but there are enough articles mentioning it.



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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #870936
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse