Forum Replies Created

Viewing 15 posts - 8,026 through 8,040 (of 49,552 total)

  • RE: nolock inside a transaction

    mishrakanchan86 (8/22/2014)


    So is there a way i could run this transaction in a way that the read on table B remains unlocked

    Snapshot or read committed snapshot isolation levels should work....

    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?

    TomThomson (8/22/2014)


    Haven't noticed him recently on SQLServerCentral, though :cool:.

    He dropped in recently to state that indexes were only needed in badly designed databases.... 🙁

    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: Query execution not showing up in profiler trace

    Robert Frasca (8/22/2014)


    That must be the Database Name that is filtered on by Profiler rather than the fully qualified database name referenced in the query.

    That's exactly what it's doing. 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: Query execution not showing up in profiler trace

    Robert Frasca (8/22/2014)


    I have one filter to include my specific database name, i.e. LIKE 'DatabaseName'

    There's the problem.

    Take that filter out, the event will then show up and you can...

    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 Database is corrupted....... plz help.

    shahtisaipur (8/21/2014)


    the error is myfile.mdf is not a primary database file. (SQL server , error 5171)

    With that error, restore from your last good backup. That error suggests that the 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
  • RE: LEFT JOIN without predicate , still works but what is that?<!-- 864 --><!-- 864 -->

    mario17 (8/21/2014)


    Hi,

    Dealing with some sp code where I have left join without predicate and it still works !!!!! Comments says : Optimization (?).

    I surely thing...

    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: Unable to reply to some forums<!-- 864 -->

    Maybe related.

    At the same time that problem started, some threads started getting things like <!-- 864 --> in their title.

    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: Simple Select top x * Query Takes much too long<!-- 864 -->

    mlueke (8/21/2014)


    This table is deleted and refilled by a job which runs at night, so there are no other queries which will be blocked during this Table hint.

    Then truncate 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: Simple Select top x * Query Takes much too long<!-- 864 -->

    mlueke (8/21/2014)


    Instead of creating a clustered index i've decieded to try an other approach and executed: Alter Table dbo.test REBUILD whicht did the job just like a clustered index would...

    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: Time Out - Retrospective look at what caused it<!-- 864 -->

    No to all

    Timeout is not a SQL concept, so it wouldn't store that anyway. Timeout occurs when the application decides it's waited too long and signals SQL to stop processing....

    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: shrinking log file<!-- 864 -->

    Same way you'd shrink a log in a non-relicated database. DBCC ShrinkFile.

    Same comments as always when shrinking a log. Don't unless the log has grown due to some unusual operation...

    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: Re-Indexing a large table<!-- 864 -->

    ReamerXXVI (8/21/2014)


    Is there some literature I can read up on that explains why it doesn't matter?

    Order doesn't matter because they're independent operations, they don't interfere or interact with each 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: Re-Indexing a large table<!-- 864 -->

    Doesn't matter at all (providing you aren't using SQL 2000)

    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: Msg 824, Level 24, State 2, Line 1 SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:16514; actual 0:0). It occurred during a read of page (1:16514) in database ID 8 at offset 0x00000008104000 in file 'G:\test\test.mdf'. Additional messages in the SQL Serve

    anoosha.konaparthi (8/20/2014)


    Again getting the same error after executing the above

    Please run just the following, post the full and complete, unedited output and I'll be able to give you useful advice....

    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: Msg 824, Level 24, State 2, Line 1 SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:16514; actual 0:0). It occurred during a read of page (1:16514) in database ID 8 at offset 0x00000008104000 in file 'G:\test\test.mdf'. Additional messages in the SQL Serve

    copper_sunflower (8/20/2014)


    If you don't, then you may use REPAIR_REBUILD or REPAIR_ALLOW_DATA_LOSS parameters in DBCC CHeckdb to try to fix the corruption.

    No, please no. We don't yet know exactly what's...

    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 - 8,026 through 8,040 (of 49,552 total)