Forum Replies Created

Viewing 15 posts - 18,856 through 18,870 (of 49,552 total)

  • RE: DBCC CHECKDB returned errors

    Geoff A (4/23/2012)


    a DBCC UPDATEUSAGE (Mydb) will probably fix those 4 errors.

    UpdateUsage will not fix those errors. The errors are not related to page space tracking.

    Errors that can be fixed...

    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 you log the stored Procedure where an action occurred from a trigger?

    You can use SET CONTEXT_INFO and CONTEXT_INFO(), but it requires changing every single procedure

    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: fragmentation where index_level<>0

    Maybe, but probably not. Index levels > 0 are much, much smaller than the leaf level are. They're more likely to be in memory all the time (and for pages...

    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: differing query plans from sql 2000 and sql 2008 R2

    That'll take care of the index stats, but not the column stats.

    Update statistics on all tables with fullscan. If the problem persists, post query and execution plan.

    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 spool to physical index for performance

    Looks good. I could easily have missed something when I did the initial analysis, it's a huge query.

    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 small discusion

    SQLKnowItAll (4/23/2012)


    1. A covering index is an index whose key contains all of the values of a query and subsequently does not require reading anything other than the index. ...

    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 2005

    As the error clearly says, RECONFIGURE cannot be run within a user transaction. Hence it cannot be between a BEGIN TRAN and a COMMIT/ROLLBACK.

    Do your reconfigurations outside a transaction.

    p.s. allow_updates...

    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 you restore a 2008 DB to 2005?

    bitbucket-25253 (4/23/2012)


    ALTER DATABASE SET SINGLE_USER

    Change the compatibility level of the database. -- 2005 level is 90

    Put the database in multiuser access mode by using

    ALTER DATABASE SET MULTI_USER

    BACK UP the altered...

    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: Restored a DB from SQL 2000, now SQL can't shrink/find log

    smardi5 (4/23/2012)


    can you try changing it to full recovery, take transaction log backup

    Why would you want to do that?

    In simple recovery model the log space is marked reusable any...

    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: How to create dynamic function

    You cannot use dynamic SQL in a function. (well there's a rather dangerous workaround, but it is strongly recommended against)

    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: check all Trace flag status in SQL Server

    If you enable traceflags for a single session, they are only visible on that session, not any other.

    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: No Catalog Entry Found For Partition ID X in DataBase Y

    Is that absolutely all that it output? I really do want to see every single line that checkDB output, regardless of whether it looks important or not.

    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: plase help me

    GilaMonster (4/23/2012)


    Please define 'crash'. Exactly what happened? Exactly what state are things now?

    No backup? Seriously you have no backup? I'm going to assume, since there's no backup, that 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: Dynamic CoulmnName in Select with assignment

    Dwain's not suggesting you create a table. He's creating a table purely so that he can test the code and show you how the code works since you did not...

    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: How to create dynamic function

    You can't do that in a function. Only way to have variable database and table names is dynamic SQL, and functions cannot have dynamic SQL. Consider a stored procedure instead?

    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 - 18,856 through 18,870 (of 49,552 total)