Forum Replies Created

Viewing 15 posts - 12,211 through 12,225 (of 49,552 total)

  • RE: File System Failure DB Recovery

    Please run the following and post the full and complete, unedited output.

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

    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: Are the posted questions getting worse?

    Brandie Tarvin (8/2/2013)


    How many people (besides Jeff and myself) have written SQL Spackle articles?

    Not me, my preference is deeper technical articles (when I write at all these days)

    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: Reg: SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    Phil Parkin (8/2/2013)


    If you can guarantee that the database is and will be in a fully committed and unchanging state when the proc runs (eg if everything is in read-only...

    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: Reg: SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

    kevin_nikolai (8/2/2013)


    For SQL Reports stored procedures you most definitely want to use "SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED".

    Because it's really, really important for all reports to occasionally return inconsistent and...

    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: WITH (NOLOCK), allows dirty reads.

    Eugene Elutin (8/1/2013)


    I guess missing and double counting of rows could be part of "Dirty Read" definition.

    No it's not. It's a second effect that Books Online doesn't mention and which...

    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: WITH (NOLOCK), allows dirty reads.

    Eugene Elutin (8/1/2013)


    3. Dirty read may not read data which was committed long ago...

    That's not a dirty read. The definition of dirty read is reading uncommitted data.

    That nolock can miss...

    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: WITH (NOLOCK), allows dirty reads.

    ben.brugman (8/1/2013)


    For my understanding:

    1. Dirty reads is the reading of data which is not (yet) committed.

    2. NOLOCK hint reads data which is not committed.

    Correct.

    Is there example code which does...

    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 CHECKDB

    L' Eomot Inversé (7/31/2013)


    and about 175 picked the equally non-existent although less implausible sounding DBCC CHECKFILEGROUP;

    http://msdn.microsoft.com/en-us/library/ms187332.aspx

    DBCC CHECKFILEGROUP (Transact-SQL)

    Checks the allocation and structural integrity of all tables and indexed views in...

    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: Shrink database file with EMPTYFILE option

    Jeff Moden (7/30/2013)


    GilaMonster (7/30/2013)


    There is no requirement that a DB be in single user mode or quiesced to do a shrink file.

    That's true but it makes it a heck 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: Global Variable

    You can't create global variables in SQL Server.

    What are you trying to do? Maybe there's an alternative...

    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: CheckDB inconsistency error

    Greg A Goss (7/30/2013)


    1) I write a script to create a new table with the same schema as the "broken" one, and then I'll do an insert into 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
  • RE: CheckDB inconsistency error

    The correct solution here is to run checkDB with repair allow data loss. It won't actually lose any data, it's just that the particular fix requires that option.

    It is discussed...

    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: Non-Pageable Memory

    The Lock Pages in memory privilege allows SQL to allocate memory that is not pagable. That memory is allocated with the AWE APIs (no matter if it's 32-bit or 64-bit)

    Hence,...

    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: CheckDB inconsistency error

    Please run the following and post the full, complete and unedited output.

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

    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: Shrink database file with EMPTYFILE option

    There is no requirement that a DB be in single user mode or quiesced to do a shrink file.

    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 - 12,211 through 12,225 (of 49,552 total)