Forum Replies Created

Viewing 15 posts - 3,916 through 3,930 (of 6,035 total)

  • RE: Finding Problem Code

    Steve Jones - SSC Editor (5/1/2015)


    david.gugg (5/1/2015)


    We run a daily trace that captures SQL running longer that X seconds. This gives us a good idea of what SQL can...

  • RE: Finding Problem Code

    djackson 22568 (5/1/2015)


    Commenting mainly to benefit from what others share...

    We are implementing a major product that solves this issue by having a shadow of live, and all reports are run...

  • RE: Finding Problem Code

    Static code analysis doesn't know how many times the code is executed, how much data it accesses, or how it's impacted when running in parallel with other specific code. However,...

  • RE: Update takes too long

    As far as I know, we never got any execution plans for reference. We don't know how many pages are being read / written, how often this procedure is called,...

  • RE: Delete statement suggestion that will help me fix my statement

    To prevent a conversion error, I had to change 2015-04-30 to 2015-04-10, where the month and day can be interchangable.

    set dateformat mdy;

    select cast('2015-04-10' as datetime);

    2015-04-10 00:00:00.000

    set dateformat dmy;

    select cast('2015-04-10' as...

  • RE: Delete statement suggestion that will help me fix my statement

    Michael Meierruth (4/30/2015)


    Eric M Russell (4/30/2015)


    Michael Meierruth (4/30/2015)


    For easier readability, I always write my hard code dates as 'yyyy-mm-dd'.

    99999999 is always assumed by SQL and most programming languages to be...

  • RE: Database design and performance

    What I posted previously is ranking top 10 queries by wait (blocked) time. How we define queries as "expensive" depends on where your most urgent bottleneck is. You could perhaps...

  • RE: Database design and performance

    Well, you've certainly got your work cut out for you. As someone who comes from an application developer background, I'm sure you know how folks feel about database refactoring. You're...

  • RE: Delete statement suggestion that will help me fix my statement

    Michael Meierruth (4/30/2015)


    For easier readability, I always write my hard code dates as 'yyyy-mm-dd'.

    99999999 is always assumed by SQL and most programming languages to be in ISO standard YYYYMMDD format....

  • RE: Top expensive queries

    Also, so it's more readable, you can convert miliseconds to hh:mmss format using something like the following.

    ...

    ,convert(varchar,dateadd(ms,last_elapsed_time,getdate())-getdate(),108)last_elapsed_time

    ...

  • RE: How to view corrupt ms access database?

    First, attempt to rename the .mdb file. If you get access error, then another process has it open.

    Also, one of the sysinternals tools can tell you who has the file...

  • RE: Update takes too long

    The following "first responder" query will provide us with some execution statistics like execution time, blocked vs working time, page read count, write count, etc. for each statement contained in...

  • RE: Delete statement suggestion that will help me fix my statement

    Because you're new to this, I'd like to add one final note about filtering on dates. If OrderDate column is a datatype that contains both date + time (ie: DateTime...

  • RE: ALTER TRACE

    buddy__a (4/28/2015)


    Yes, I'm running Profiler from my desktop but it works fine against servers, i.e. my local installation, to which I have full access. It's only those servers that...

  • RE: Your Role Is Changing

    Jeff Moden (4/28/2015)


    Eric M Russell (4/27/2015)


    OK, I'm sorry for the remark about some users wanting access to the 'SA' account just to feel important.

    I wouldn't be. I'm glad that...

Viewing 15 posts - 3,916 through 3,930 (of 6,035 total)