Forum Replies Created

Viewing 15 posts - 13,891 through 13,905 (of 22,213 total)

  • RE: Select Max problem

    Just add an alias:

    SELECT MAX( RowNumber ) FROM

    (

    SELECT

    ROW_NUMBER() OVER (ORDER BY MSG_DTM_LASTSTATUSTIME DESC) as RowNumber

    FROM

    Message_MSG msg with(nolock)

    ) AS x

  • RE: Exporting database with vbscript?

    Can you use PowerShell instead? If so, I've got a good script I can point you to.

  • RE: Analyzing an existing database and build class diagram

    First thing I'd do is get the data model. Do you have a data modelling tool like ERStudio or ER/Win? If not, you'll have to use the built in model...

  • RE: Column Order in an Index

    Thanks for the article Sarvesh. You may want to spend a little more time on the next one, just nail down why these things occur. As you showed, it's not...

  • RE: Little Devices

    DavidL (11/22/2010)


    I've been trying to think of why exactly I feel these devices are oversold for many circumstances (I do not use one, but some on my team do, and...

  • RE: Are the posted questions getting worse?

    Paul White NZ (11/23/2010)


    GilaMonster (11/23/2010)


    Anyone up for a challenge?

    http://www.sqlservercentral.com/Forums/Topic1024140-360-1.aspx

    I suspect the developer who said those can't be optimised doesn't know the meaning of the word. Dynamic SQL and lots of...

  • RE: Work around for SQL server performance issue

    Some other potential optimizations. You have a whole bunch of DISTINCT operations. These are aggregates and when you see them everywhere in a query it's usually indicative of poor programming...

  • RE: Delete data in a table

    pavan_srirangam (11/22/2010)


    Check isolation for snapshot isolation level which stores data in tempdb while retrieving data so that actual table can be updated with out lock any row locks will be...

  • RE: Little Devices

    Jeff Moden (11/22/2010)


    I just don't ever want to be that "productive". Down-time is very important to me.

    What is this "down-time" of which you speak?

  • RE: Delete data in a table

    Craig Farrell (11/22/2010)


    Grant, what about the option of using PAGELOCK as a table hint during the delete? If it's clustered on the ID, that'll keep it out of the...

  • RE: Delete data in a table

    Ah, well, you might be in trouble then. 1/3 to 1/2 of the table being deleted is likely to lead to table locks.

    You might want to look at partitiioned...

  • RE: Delete data in a table

    3 million rows out of how many?

    And again, an index alone won't necessarily do much for you, and could hurt you. What's the clustered index?

  • RE: Delete data in a table

    A lot of it also depends on your indexing architecture. Are you deleting based on the clustered index and, will those deletes take place in a different part of the...

  • RE: DB Status?

    That script isn't set up to run on 2000. You'll have to gather the metrics other ways.

  • RE: Are the posted questions getting worse?

    Chris Morris-439714 (11/22/2010)


    CirquedeSQLeil (11/22/2010)


    Chris Morris-439714 (11/22/2010)


    Wishing Jack C a speedy recovery and some quality time for recuperation.

    Get well soon, mate.

    Did I miss something more than the burnout?

    Our DBA caught some...

Viewing 15 posts - 13,891 through 13,905 (of 22,213 total)