Forum Replies Created

Viewing 15 posts - 22,561 through 22,575 (of 49,552 total)

  • RE: Stored Procedure Table Parameter Issue

    Create PROCEDURE [dbo].[proc_AdditionalInfotbl] (@jobtbl JobTableType READONLY) AS

    Begin

    Update additionalinfo

    Set RunningUnwind = Case unwindfrnt when 5 then 1 when 6 then 2

    when 7 then 3 when 8 then 4 else...

    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: can someone point me to a list of non-SARGable expresions?

    No. Left should be, but it isn't. Reverse couldn't possibly be SARGable because it completely modified the value

    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: Ideal TempDB size for 32 cores ?

    isuckatsql (11/2/2011)


    I have four 8-core processors and from what i have read, you should have one TempDB file for each core.

    http://sqlskills.com/BLOGS/PAUL/post/A-SQL-Server-DBA-myth-a-day-(1230)-tempdb-should-always-have-one-data-file-per-processor-core.aspx

    As for size - as large as it needs to...

    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: Ghost Record Deletion Question

    Gone as in what?

    Not visible if someone selects from the table?

    Not visible if someone uses DBCC PAGE to read the raw data page?

    Not visible if someone uses a hex editor...

    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: can someone point me to a list of non-SARGable expresions?

    GSquared (11/2/2011)


    It's pretty much anything other than an equality comparison between a column and another column or between a column and a variable

    Inequalities are SARGable. It's not just equality comparisons.

    WHERE...

    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: Ghost Records

    rbalt (11/2/2011)


    Does a full backup include ghost records? When I restore to another location are they still there?

    If there are ghost records on the pages at time of backup,...

    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: Indexes after applying a log backup

    Sapen (11/2/2011)


    This was for testing some of the indexes that were newly created on a database which is a backup copy of our production database. I restored a diff. backup...

    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: Finding index Fragment details in SQL2000

    http://msdn.microsoft.com/en-us/library/aa258803%28v=sql.80%29.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: production web application performance degradation due to database issues

    Probably the usual suspects - inefficient code and poor indexing combined with increasing amounts of data. The lack of space is a concern, you don't want to run the DB...

    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: Finding index Fragment details in SQL2000

    DBCC ShowContig

    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: Index Rebuilding

    Poor performance, especially IO throughput.

    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: Index corrupted in table

    Please run the following and post the full and complete results:

    DBCC CHECKDB (<Database Name>) WITH NO_INFOMSGS, ALL_ERRORMSGS

    Got a clean backup?

    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: if update fails on one row the how to ignore it and proceed with other step

    If that's a single statement update, then it must succeed or fail as a single operation, not partially succeed and partially fail. That's required by the ACID rules of relational...

    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: What is kept in transaction log and what is not?

    Apex SQLLog is the one I know. Not cheap.

    It won't give you the exact update statement as was run, because that's not logged. All that's logged is before and after...

    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: Tune the Stored Procedure

    Tried this?:

    UPDATE #TEMP2 SET AGGTracked=A.AGGTracked FROM

    (SELECT COUNT(PRID) as AGGTracked,PRID,LOCID,Rev_CatID,MSTTYPE FROM #TEMP

    WHERE MCMetric ='New' AND PEEvent = 'New'

    group by PRID,LOCID,Rev_CatID,MSTTYPE) A

    INNER JOIN #TEMP2 B ON A.PRID = B.PRID AND (A.LOCID=B.LOCID OR...

    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 - 22,561 through 22,575 (of 49,552 total)