Forum Replies Created

Viewing 15 posts - 9,406 through 9,420 (of 49,571 total)

  • RE: database consistency report

    Same reasons SQL won't automatically take backups or automatically create indexes for you, impossible to decide correctly for all possible situations and guessing wrongly could open MS to liabilities.

  • RE: variable in a view

    phingers (4/4/2014)


    Thanks I tried that but I can't use the subquery (SELECT nomcode FROM ctlfil WHERE recid = 24) in the GROUP BY clause

    Why not?

    The scalar function will do the...

  • RE: variable in a view

    This should work as long as you don't have multiple rows being returned from that subquery

    SELECT dbo.nomfil.nomcode ,

    ISNULL(calc.val, 0) AS ytdper...

  • RE: database consistency report

    SQL will never, under any circumstances, run CheckDB automatically. That would be a very bad thing.

  • RE: How can I track how many times a specific SP is called every day?

    milos.radivojevic (4/4/2014)


    The following DMV query returns the number of execution for a specific stored procedure since the last server restart:

    It returns the number of executions since that procedure's plan was...

  • RE: database consistency report

    All I can tell from that is that CheckDB is scheduled to run daily and is running daily.

  • RE: Split database across servers

    Casper101 (4/4/2014)


    So you would advise against it?

    I would say it's a lot of work, a lot of design required, easy to get wrong.

    The better solution would rather be hardware and...

  • RE: database consistency report

    Without seeing the 'six lines' which you refer to, no idea.

  • RE: Split database across servers

    A database is attached to a single SQL instance only. To scale out, you'd have to work out how to split the database into multiple databases and change the applications...

  • RE: Execution Plan

    sqlbuddy123 (4/3/2014)


    Key lookup is bad, instead you can avoid this by using a covering index by including all those referred columns in the index itself.

    Key lookup might be bad....

  • RE: How a query uses an index

    MyDoggieJessie (4/3/2014)


    Rather than adding the column to the '"leading edge" you might want to consider adding it to the end of the index...this may help with the overall selectivity of...

  • RE: WITH RECOMPILE on Web Server - discussion

    I think, as for almost all hints and options, it's a targeted solution to specific problems, not something to be put on every procedure blindly.

  • RE: How can I track how many times a specific SP is called every day?

    If your monitoring for multiple days in a row, I wouldn't use trace. Data volume can get way too high. If it's a small number of procedures you want to...

  • RE: fn_dblog

    Could slow down data modifications. It's not something I would run on production except in exceptional circumstances.

  • RE: Performance Issues with Query

    To help you we need to see the execution plan (actual), table definitions and index definitions. Otherwise we're just guessing.

Viewing 15 posts - 9,406 through 9,420 (of 49,571 total)