Forum Replies Created

Viewing 15 posts - 5,791 through 5,805 (of 49,552 total)

  • RE: how to do a Monthly Average on my SQL DB

    Without knowing what columns are in the table, all I can suggest is the AVG function, maybe with a GROUP BY.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Script table and data

    You can use the Generate Scripts to script data, but do be careful about the number of rows. There's a lot of overhead in a script of the data because...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Script table and data

    I strongly recommend that you don't script the data. The file sizes get very large and Management Studio often can't handle the large files.

    Script the table (right click table ->...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Usage of built-in functions on columns ignores/excludes Indexes on that column

    Functions on a column don't prevent index usage. They prevent index seeks. The index can always be scanned, but scans are usually less efficient than seeks

    Also, you cannot draw conclusions...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Temp Db size values from different tables

    Master files shows the default size, database files shows the actual size. Only TempDB resets to default size on server start.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Tuning expensive query

    You're not going to get any better than that. By the looks of the reads, you're fetching the majority portion of the table and all the columns. As long as...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: SQL Server 2012 - High Memory Usage

    audiocool (5/24/2015)


    Is that Remote desktop connection ? If yes, we all login to SQL Server via Remote Desktop Connection.

    Well there's part of your problem.

    If this is not recommended, what will...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: It's emergency situation. Select from locked rows

    sys.dm_tran_locks, identify the session holding the locks, figure out what that session is doing and what the consequences of killing the session will be. If acceptable, kill the session.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: The Scientific Method: a call to action

    TomThomson (5/24/2015)


    My comment was not intended as criticism of your editorial, as I rate it as one of the best editorials I've seen here - so I'm sorry if...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Should we set maximum memory setting for each SQL server?

    WhiteLotus (5/24/2015)


    My question is : What if I want to adjust maximum memory Setting ONLY and let the Minimum memory as default ? Is it OK ? and what is...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Should we set maximum memory setting for each SQL server?

    WhiteLotus (5/24/2015)


    My team said that even if We don’t set up the maximum memory setting in DEDICATED SQL server , SQL will adjust memory usage dynamically and always leave 1...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: The Scientific Method: a call to action

    jurgen.lottermoser (5/24/2015)


    wouldn't having the same values in both columns in this case mean turning the ints into strings rather than having the same number in both of them?

    You could certainly...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: The Scientific Method: a call to action

    TomThomson (5/23/2015)


    But the scientific method doesn't generally lead to proofs - <large snip>

    Of course, it's a fair bit more complex than what I wrote. The full scope is well beyond...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: The Scientific Method: a call to action

    Jacob Wilkins (5/23/2015)


    (e.g., will making a particular change to this stored procedure result in shorter execution time, and if so, is it at the cost of increased CPU, etc.?).

    All...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: The Scientific Method: a call to action

    meilenb (5/23/2015)


    My Point is that it "could" be a completely different conversation.

    It is a completely different conversation, because INT doesn't automatically mean artificial key and String doesn't automatically mean natural...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 5,791 through 5,805 (of 49,552 total)