Advertisement

03.13.2008 at 09:28PM PDT, ID: 23240857
[x]
Attachment Details

Nulls or Default Value - Performance question

Asked by bandolex2 in SQL Server 2005, MS SQL Server, Active Server Pages (ASP)

Hi,

Is Null faster than "something" stored in a column of a database?

For example:

Table1:
Name          Age
John          25
Pepe          Null
Martha       12
Julius          Null

Table2
Name          Age
John          25
Pepe          0
Martha       12
Julius          0

In table1 i alowed Nulls, in table2 I have the default=0 when no data is present
Will table 1 be faster than table 2?

thanks.Start Free Trial
[+][-]03.13.2008 at 11:40PM PDT, ID: 21123425

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.14.2008 at 01:34AM PDT, ID: 21123716

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.14.2008 at 01:51AM PDT, ID: 21123780

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, MS SQL Server, Active Server Pages (ASP)
Sign Up Now!
Solution Provided By: maradam
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906