Forum Replies Created

Viewing 15 posts - 44,671 through 44,685 (of 49,552 total)

  • RE: CHECKDB

    Depends. TempDB's used for checking indexed views as well. Probably other things too.

    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: INSERT script errors *** Gurus help needed ***

    Ummmm.....

    Which of these inserts is throwing the error? (in management studio, if you double click the error in the results pane, it will take you to the line in question)

    What...

    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: spid61 Could not find the index entry for RID '16afe06e0100000000ed170000020000' in index page (1:16904330), index ID 2, database 'SCADAHistorical'

    Usually hardware.

    http://www.sqlskills.com/blogs/paul/2008/08/27/SearchEngineQA26MythsAroundCausingCorruption.aspx

    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: NOLOCK Discussion

    Honestly, in my opinion, if you do your job right on the SQL syntax, DB design and indexing a NOLOCK statement shouldn't be necessary in any environment.

    If you're encountering severe...

    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: Odd Construct in a WHERE clause

    Glen (9/4/2008)


    Gail,

    would it be then proper to consider that on a table with search on an unindexed column the

    'WHERE @param = something or field = @param" and

    "WHERE field = @param...

    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: Select * when you don't want to select everything

    List all but the one or two columns you don't want. Even when you do want all the columns it's better to specify the names explicitly. The table may get...

    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: NOLOCK Discussion

    Grant Fritchey (9/4/2008)


    Look at the graphical execution plan, they said. It's all index seeks and nested loop joins...

    I had a dev that wanted to use the LOOP hint...

    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: Odd Construct in a WHERE clause

    It can 'short-circuit' but not on the basis of where the expressions are in the where clause, rather which indexes are used and which expressions those indexes can 'evaluate'

    If we...

    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: Odd Construct in a WHERE clause

    Glen (9/4/2008)


    Can you try changing the order in your WHERE clause to 'WHERE (@num1 = 0 or colOne = @num1)'?

    Won't make a difference. Order of clauses in the WHERE are...

    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: Question about SQL 2005 tempdb datafiles

    Depends. Does you app need/use 48 GB of TempDB? If yes, then it's not too much.

    48GB isn't large for a DB.

    You can start out with just 4 files and then...

    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: NOLOCK Discussion

    If you know that a set of tables are static and hence locks are an unnecessary overhead, then put those tables into a separate filegroup and mark that filegroup 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: CPU pegged but nothing running?

    Task manager's a bad way to see SQL server's memory. Use perfmon rather and look at the total server memory and target server memory (under SQL server:Memory manager) and the...

    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: NOLOCK Discussion

    parackson (9/4/2008)


    Calling out an index has not always been productive but no matter what NOLOCK would always speed up a query...

    I've already put in my 2 cents on nolock... I'll...

    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: spid61 Could not find the index entry for RID '16afe06e0100000000ed170000020000' in index page (1:16904330), index ID 2, database 'SCADAHistorical'

    The databases are marked suspect and are not accessible? Do you have up-to-date backups?

    Just to confirm, you are using SQL 2005?

    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: Server Logins

    You should be able to restore it.

    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 - 44,671 through 44,685 (of 49,552 total)