Forum Replies Created

Viewing 15 posts - 151 through 165 (of 543 total)

  • Reply To: tsql query help

    In QA env, multiple databases load tests goes in parallel and sometime they complain that server is slow intermittantly .

    So, by using this query I ll be ablt to know...

  • Reply To: What queries to tune first?

    Jeff Moden wrote:

    vsamantha35 wrote:

    Thanks everyone for sharing your inputs.

    Sometimes we are seeing below patterns

    "Application runs a query every 10 mins without any good reason."

    There is a MERGE statement which does some...

  • Reply To: What queries to tune first?

    Jeff Moden wrote:

    To add to what Johan posted, your worst performing queries will NOT usually be your longest running queries and it may not be the queries themselves, at all... it...

  • Reply To: Slow Sql server

    Jeff Moden wrote:

    With large tables, it's not likely that statistics are up to date (Frederico hinted at this in his post).  What are you doing to keep statistics up to date...

  • Reply To: Slow Sql server

    Thank you very much everyone. A lot of wise words.

     

  • Reply To: tsql query help

    Jeff Moden wrote:

    This does the trick for me.

       WITH cteByDB AS
    (--==== Preaggregate that data including a grand total using ROLLUP and marking that total row with...
  • Reply To: tsql query help

    Jeff Moden wrote:

    The use of the SUM(OVER) Windowing function should do it for you.

    I also have to ask... why to you need a "running total" for this?  Are you actually looking...

  • Reply To: Query tuning advice

    Many thanks Grant sir for the detailed explanation.

    Thanks Jeff and Jonathan for the feedback.

  • Reply To: Query tuning advice

    Hi Jonathan,

    Thanks for the input. I would like to know if there is any implications/perf issues of using MERGE statement especially when dealing large sets of data?

     

  • Reply To: Query tuning advice

    Hi Grant Sir,

    Thanks for the pointers and sharing the link of capturing Waits. will check with them replace old join syntax's with ANSI joins.

    Couple of questions:

    1. for conditions like , ...

    • This reply was modified 3 years, 5 months ago by vsamantha35.
  • Reply To: Need advice on optimizing a query

    As Grant said, there a few rows which are getting filtered out. Index creation of no use in this case.

    Will ask them to work with the vendor.

    Thank you Grant and...

  • Reply To: security related question

    Grant Fritchey wrote:

    Deny is a trump over all other security. So, you may have a complex set up where a given user, because they're in a group, has access to a...

  • Reply To: KILL SESSIONS

    Thanks for the clarifications. Many thanks.

  • Reply To: KILL SESSIONS

    Thanks Jeff.  Will those connections have any negative performance on SQL Server or is it normal?  What is the benefit that application would get?

  • Reply To: Script for login creation and role assignment

    Any help on how below script can be dynamically executed within the stored proc?

    USE [master]

    GO

    CREATE LOGIN [Smith] WITH PASSWORD=N'SunRise#123', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON

    GO

    USE [SQLDBA_utils]

    GO

    CREATE USER [Smith] FOR LOGIN [Smith]

    GO

    USE [SQLDBA_utils]

    GO

    ALTER ROLE...

Viewing 15 posts - 151 through 165 (of 543 total)