Forum Replies Created

Viewing 15 posts - 11,581 through 11,595 (of 26,486 total)

  • RE: Beginner student in SQL server

    Steve Jones - SSC Editor (5/31/2012)


    In addition to Sean and Lynn's advice, buy a book. Work through it page by page. You'll learn a lot.

    Building on this, go to a...

  • RE: Using a CASE statement...possible to Group By?

    joshd 1807 (5/31/2012)


    I wasn't aware you could put the case statements into the GROUP BY clause...that's interesting! I need to be more daring in writing code 🙂

    Unfortunately the query doesn't...

  • RE: Strange order for returned records, suddenly

    All I can say is that you have been fortunate until now. SQL does not guarantee order of data when you query a table without using an ORDER BY...

  • RE: Strange order for returned records, suddenly

    The only way to ensure order is to use an order by clause. This may mean you need to add an identity column to the tables to ensure that...

  • RE: No More Transactional Replication with Updatable Subscriptions

    SQLKnowItAll (5/31/2012)


    Well... As a final update I have found that it will in fact be removed later on an MS site.

    Do you have a link to this info?

  • RE: Total / average function advice

    ScottPletcher (5/31/2012)


    An occassional highly unusual exception doesn't validate the horrible idea in general of identity as the default for a clus key.

    Nevermind, we aren't going anywhere and doing it really...

  • RE: Total / average function advice

    ScottPletcher (5/31/2012)


    True, there could be special situations.

    you could potentially have a very large and active table that is in a database mirrored over a slow wan connection.

    If you're trying to...

  • RE: Total / average function advice

    There may be architectual reasons for using an identity column for the clustered index. For instance, you could potentially have a very large and active table that is in...

  • RE: Total / average function advice

    ScottPletcher (5/31/2012)


    There are vastly better ways to stress that in general a table needs a clustered key than to have the damaging and false notion that it should be an...

  • RE: Total / average function advice

    ScottPletcher (5/31/2012)


    While I may agree, I have to play devils advocate, why not cluster on the identity column?

    Because the overwhelming majority of queries will specify the datetime.

    I wish I had...

  • RE: Beginner student in SQL server

    And if you really want to learn, cough up the $50 or so and buy the Developers Edition. That will give you everything and you'll just be scratching the...

  • RE: Total / average function advice

    ScottPletcher (5/31/2012)


    *Cluster* the table on the add date/time (rather than on, say, an identity column, which may still be a good idea to have on this table, just don't cluster...

  • RE: Database Design Theory - Primary Keys

    Sean Lange (5/31/2012)


    Lynn Pettis (5/31/2012)


    Here is my problem with Natural Keys (not saying they are wrong), they tend to not stay unique. Your case in this thread is a...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (5/31/2012)


    So much fun when moving hundreds of Oracle tables to SQL Server that Oracle alphabetizes as

    X, Y, Z, _

    and SQL Server alphabetizes as

    _, A, B, C

    When every table...

  • RE: SQL Server Agent - who ran that job?

    If you are logging successful logins, you should be able to use the default trace and/or errorlog to track who is logging in and running jobs.

Viewing 15 posts - 11,581 through 11,595 (of 26,486 total)