Forum Replies Created

Viewing 15 posts - 4,696 through 4,710 (of 49,552 total)

  • RE: CDC Tracking tables are not in the Backup?

    Ian_McCann (9/23/2015)


    When MyTable was used in the restored database the log_reuse_wait_desc always showed 'Replication' and cdc had to be set up to clear the blockage.

    Yup. CDC uses the replication log...

    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: Default value for boolean parameter

    Word of advice:

    CREATE TABLE #temp

    ( Id int, Name char(30), YesNo bit NOT NULL)

    Also you may want to review the first section of this article, before your coding pattern causes...

    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: CDC Tracking tables are not in the Backup?

    Ah!

    https://msdn.microsoft.com/en-us/library/ms186858.aspx

    <change_data_capture_WITH_option>::=

    | KEEP_CDC

    https://msdn.microsoft.com/en-us/library/ms178615.aspx

    KEEP_CDC

    Supported by: RESTORE

    KEEP_CDC should be used to prevent change data capture settings from being removed when a database backup 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
  • RE: best isolation level to use in a long delete insert query

    Yup. It's a delete, it has to take exclusive locks and hold them to the end of the transaction.

    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: best isolation level to use in a long delete insert query

    The isolation level's irrelevant. Isolation level affects what locks read queries take and how long they're held for. Since the only selects are part of the insert and are from...

    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: CDC Tracking tables are not in the Backup?

    Check that you restored the correct database. If there are multiple backups in that file, your restore statement would have restored the oldest of the backups.

    RESTORE HEADERONLY FROM DISK =...

    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: Create login of sysadmin role on server having logon trigger

    Connect via the Dedicated Administrative Connection. Connections made to that don't fire login triggers.

    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: DBCC REINDEX.. vs. ALTER INDEX ALL

    Scan density was removed because it was confusing. Extent fragmentation is only reported for heaps now, for much the same reasons. In the old Show_Contig, there were too many values...

    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: "Error: 605" then "Attempt to fetch logical page (n:nnn) in database 2 failed"

    Known bug.

    https://support.microsoft.com/en-us/kb/960770

    https://connect.microsoft.com/SQLServer/feedback/details/641122/error-605-in-tempdb-on-sql-2008-r2-despite-bug-claims-to-be-fixed

    It's not actual database corruption, the page_verify setting is immaterial. Test the traceflag which the connect item mentions, see if that fixes things.

    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: Procedure Plan Cache is cleared automatically

    If you query the plan cache, what's in there? Lots of single-use ad-hoc queries? Lots of object plans?

    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: Route blocker

    Why are you still using sysprocesses? It's the SQL 2000 function, it doesn't show any newer properties or columns

    The head will be the one which is referenced by other sessions...

    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: Data size of table is not reduced even after deleting millions of rows

    Kristen-173977 (9/21/2015)


    I had assumed the Heap Rebuild was just going to update all the non-clustered indexes with the revised row-identifier and nothing else.

    That would be extremely inefficient, to update every...

    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: Creating Temp Table with records by running Stored Procedure

    You'll need to create the temp table first, then run

    INSERT INTO ...

    EXEC <stored proc>

    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 get rid of NULL in my results from case when

    How do I tell which row goes with which row? Is it always the case that the CPT for src of 'b' will be the CPT for the src of...

    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: Data size of table is not reduced even after deleting millions of rows

    Kristen-173977 (9/21/2015)


    Rebuilding heap is going to have to update all the non-clustered indexes (although if the purpose of doing it is to reclaim massive amounts of space following a bulk...

    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 - 4,696 through 4,710 (of 49,552 total)