Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: Today @ 3:13 PM
Points: 54, Visits: 204
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 @ 1:53 PM
Points: 42,771, Visits: 35,870
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 2008, MVP
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