Forum Replies Created

Viewing 15 posts - 736 through 750 (of 825 total)

  • RE: The Semantics of NULL in SQL Server 2008

    da-zero (8/24/2010)


    Carlo Romagnano (8/24/2010)


    One way to avoid worrying about NULLs is never to use them, always declaring columns as not allowing NULLs and designating default values for "empty" or "unknown"....

  • RE: The Semantics of NULL in SQL Server 2008

    ajs-1102829 (8/23/2010)


    Comments posted to this topic are about the item <A HREF="/articles/T-SQL/70808/">The Semantics of NULL in SQL Server 2008</A>

    SQL2008???

    What's the difference from the other versions of sqlserver or ANSI...

  • RE: The Semantics of NULL in SQL Server 2008

    One way to avoid worrying about NULLs is never to use them, always declaring columns as not allowing NULLs and designating default values for "empty" or "unknown". This will save...

  • RE: Distinct clause in Select statement

    Hugo Kornelis (7/26/2010)COUNT(*) returns the number of columns (regardless of values);

    That's false: COUNT(*) returns the number of ROWS regardless of values of columns. :w00t:

  • RE: Distinct clause in Select statement

    Answer is very easy: SELECT DISTINCT does not have parameters.

  • RE: SQL Audit

    It's the same, but many people get it wrong again.:-D:-D:-D

  • RE: ALTER

    Hugo Kornelis (7/14/2010)


    Carlo, you are missing an impportant point in your repro.

    The performance difference in the question is not caused by rebuilding or converting the table contents, but by rebuilding...

  • RE: ALTER

    Option 1 is the right and only choice, Option 2 runs fast same as Option 1.

    The performance problem is done converting NULL to NOT NULL and not viceversa.

    Try this script...

  • RE: How many Records Will Get Selected

    There is nothing new learn from this question.

    The lesson is:

    "GO" may be dangerous if no error checking is done!

  • RE: What identity comes next?

    If you want an increment of 10, so all values are 0, 10, 20 and so on,

    be warn of SET IDENTITY_INSERT <table> ON

    may lead to unwanted sequence:

    create table #a(i int...

  • RE: SQL syntax

    EXEC('SELECT*FROM[sysobjects]ORDERBY1desc')

    In this case the "order by" clause is missing

    ORDERBY1desc is the alias of [sysobjects]

  • RE: SQL syntax

    ???????????????????????????????????

    😎

    Try this:

    select*from sysobjects order by 1desc

    No space in 1desc

  • RE: Backup\ Restore completion Status.

    vk-kirov (5/18/2010)


    Maybe the word "job" is a little bit confusing in the context of the QOTD because in SQL Server it means "specified series of operations performed sequentially by SQL...

  • RE: Slow SP with date parameters solved.

    Starting from sql2000 sp4 and sql2005, sql2008, the optimizer changed strategy to retrieve data when you specify parameters in the where clause. So, in this case "column1 between @from and...

  • RE: Statistics

    Hugo Kornelis ...

    I full agree.

Viewing 15 posts - 736 through 750 (of 825 total)