Forum Replies Created

Viewing 15 posts - 4,456 through 4,470 (of 5,393 total)

  • RE: Are the posted questions getting worse?

    I know I will probably get good answers from other people on the forums, but I would really appreciate reading your thoughts on this one.

    What irritates me is that I...

    -- Gianluca Sartori

  • RE: Selecting highest value from duplicate records

    I don't have SQL2000 at hand, so I can't try, but here's an alternative way to solve it that could be faster or slower. Give it a try.

    SELECT Balance...

    -- Gianluca Sartori

  • RE: Selecting highest value from duplicate records

    This should do the trick:

    SELECT Balance = ( SELECT TOP 1

    ...

    -- Gianluca Sartori

  • RE: NULL

    I got my point because I could guess the spirit of the question from the "UNKNOWN" option, but it's plain wrong.

    NULL := NULL

    -- Gianluca Sartori

  • RE: SP error

    Replace the code in your catch block with something that returns useful information about the error:

    BEGIN CATCH

    DECLARE @ErrorMessage NVARCHAR(4000)

    DECLARE @ErrorSeverity INT

    ...

    -- Gianluca Sartori

  • RE: Update query - need suggestion

    It depends. Compare the execution plans with and without date condition, you'll find out for sure.

    If unsure, you could also try the performance of the two, changing UPDATE to SELECT.

    If...

    -- Gianluca Sartori

  • RE: Update query - need suggestion

    The two UPDATEs produce the exact same exec plan.

    Just a few points:

    1) NOLOCK has no effect on the table to update

    2) NOLOCK can easily generate inconsistent data, get rid of...

    -- Gianluca Sartori

  • RE: Is this a bug?

    Great tip Paul! Thank you very much!

    -- Gianluca Sartori

  • RE: Is this a bug?

    Paul White NZ (4/9/2010)


    And, in general, the order that values are assigned to the variable is unpredictable, or at least not guaranteed.

    Really? I use it to build strings to use...

    -- Gianluca Sartori

  • RE: Trigger Won't Fire

    By default, triggers don't fire on a bulk operation. There's a switch to turn on to make triggers fire, but I can't find it on the Wizard. Maybe there's in...

    -- Gianluca Sartori

  • RE: Report of tables more used

    leonardo_gt (4/9/2010)


    ... in a periodo of time...

    The above query returns data since last service/system restart, but it can't be limited to a specific date range.

    Maybe there's some other DMV to...

    -- Gianluca Sartori

  • RE: Report of tables more used

    You can look at the index usage stats in sys.dm_db_index_usage_stats, but you can only detect index updates, you can't determine if the write operation comes from an INSERT, UPDATE or...

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    BrainDonor (4/9/2010)


    Why do so few people understand the basic principles behind backups?

    DBCC Timewarp, anyone?

    BrainDonor

    And why keep people giving crap advice on backups?

    I'm so glad SQL2008 doesn't support that "feature" any...

    -- Gianluca Sartori

  • RE: Comparing Table Variables with Temporary Tables

    Thanks for clarifying Wayne. So, it works the same as permanent tables: I was fearing that a different behaviour could apply.

    I wrote that because I use indexes on temp tables...

    -- Gianluca Sartori

  • RE: Transaction log growth

    naresh_ee (4/9/2010)


    Hi dude when the transactions will happens automatically the log size will grow,so on the time there is an option to shrink the log file,below are the command executed...

    -- Gianluca Sartori

Viewing 15 posts - 4,456 through 4,470 (of 5,393 total)