Forum Replies Created

Viewing 15 posts - 316 through 330 (of 455 total)

  • RE: SELECT and WHERE without FROM

    Carlo Romagnano (6/23/2011)


    If the condition of the WHERE clause validates to true then the result set is returned. If it does not, the result set is empty.

    This is true...

  • RE: Stairway to SQL Server Indexes: Step 3, Clustered Indexes

    Steven Willis (6/22/2011)


    Now a second question...I personally avoid using UNIQUEIDENTIFIER cols as part of a primary key. But sometimes I have no choice when I've inherited a schema from someone...

  • RE: Stairway to SQL Server Indexes: Step 3, Clustered Indexes

    Steven Willis (6/22/2011)


    Here's two sample queries that will run against the default DotNetNuke schema. Note the only difference is in the second query in which I've added to the where...

  • RE: Stairway to SQL Server Indexes: Step 3, Clustered Indexes

    amenjonathan (6/22/2011)


    I have heard from more than one person that all columns in the clustered index also show up in each non-clustered index on that same table, which is why...

  • RE: Why Can't We Code?

    I'd add another criterion I've found lacking from the search/interview process: Don't hire anyone who hasn't broken anything. Ever.

    Seriously. If they haven't broken something, then they've been holding themselves back....

  • RE: A Stumbling Count

    SQLZ (5/31/2011)


    However, I would still give consideration to including this field in the actual table so that you wouldn't need to perform the calculation when trying to query many thousands...

  • RE: Treat People Like People

    I always hate it when supposedly intelligent people try to group others together by something as nebulous as a generation. They meticulously compile and analyze statistics to get to a...

  • RE: Hints Are Not Always Better

    Ninja's_RGR'us (5/23/2011)


    Whenever I feel like adding and hint I ask myself something similar to this :

    Am I really smarter than the best MS engineers who had years and trillions...

  • RE: Type

    Very good question.

    I think the reason this works is that the NULL in the CREATE TABLE is an attribute of the column (since NULL is actually just a flag...

  • RE: Restoring after TRUNCATE TABLE

    alen teplitsky (3/9/2011)


    sknox (3/9/2011)


    alen teplitsky (3/9/2011)


    if the TRUN CATE TABLE command is logged, why can't you run it on a table that is published for replication?

    Essentially, TRUN CATE TABLE simply...

  • RE: Restoring after TRUNCATE TABLE

    alen teplitsky (3/9/2011)


    if the TRUN CATE TABLE command is logged, why can't you run it on a table that is published for replication?

    Essentially, TRUN CATE TABLE simply invalidates all of...

  • RE: Heaps

    dave.farmer (3/1/2011)


    DugyC (3/1/2011)


    Ack! Got it wrong, slightly, but enough to lose the points! :ermm:

    The explanation I found in this article http://sqlserverpedia.com/wiki/Heaps under heading Forwarded Records said... Any non-clustered indexes on...

  • RE: The Percent Sign in T-SQL

    mtassin (2/28/2011)


    I got this right but...

    SELECT 0%0

    gives

    Msg 8134, Level 16, State 1, Line 1

    Divide by zero error encountered.

    So it seems you can use it to divide 0 by 0 and...

  • RE: Valentines Day

    I thought this site loved all SQL database engines, but it just isn't in love with them...:-P

  • RE: Resource database - SQL Server 2008

    Mike Dougherty-384281 (2/11/2011)


    Hugo Kornelis (2/11/2011)

    The reason the resource database was introduced was to make applying service packs easier. Instead of dropping and creating system objects in the master database, the...

Viewing 15 posts - 316 through 330 (of 455 total)