.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Ava Aiden
Imran Ghani
Thomas Shaw

Home >> Forum >> Sql Server >> Post New QuestionBookmark and Share Subscribe to Forum

what are called as sparse columns?

Posted By: Deco     Posted Date: September 28, 2010    Points:2   Category :Sql Server
Please explain with an example or get me alink which has a good explanation.

Author: Jean Paul             
Posted Date: September 29, 2010     Points: 5   

Sparse columns are ordinary columns that have an optimized storage for null values.
The storage space is optimized for null values and processing time increased for nonnull values.

CREATE TABLE DocumentStore
Title varchar(200) NOT NULL,
ProductionSpecification varchar(20) SPARSE NULL,
ProductionLocation smallint SPARSE NULL,
MarketingSurveyGroup varchar(20) SPARSE NULL ) ;

MSDN Link: http://msdn.microsoft.com/en-us/library/cc280604.aspx

Jean Paul http://jeanpaulva.com/

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend