Forum Replies Created

Viewing 15 posts - 6,241 through 6,255 (of 49,552 total)

  • RE: Are LSNs recycled

    No. LSNs are never reused, they're unique within the database.

    If an LSN ever reset to a lower value it would result in the database being suspect and needing a...

    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: Incorrect Syntax error. But the generated query is good

    I would argue with the premise here, not the query.

    A non-online DB is not a call to run CheckDB. If a database is OFFLINE or RESTORING, there's nothing wrong with...

    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 eliminate OR condition

    MMartin1 (4/6/2015)


    Is it possible that the engine can use two threads simultaneously to scan the table in the Union scenario? I've learned and seen the Union perform better than 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: Why do I leave my DB in Restoring State after attaching to the instance?

    ??

    A database doesn't go into restoring after an attach, It'll go online.

    What are you doing, what behaviour are you seeing?

    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: CTE Syntax

    Grant Fritchey (3/31/2015)


    Steve Jones - SSC Editor (3/31/2015)


    Grant Fritchey (3/31/2015)


    I use semicolons on terminators for all my statements. Everyone should.

    You do or Prompt does it for you?

    Well, Prompt does 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: How to eliminate OR condition

    That query is about as optimal as it will get (and the OR will probably perform about the same), the cause of the poor performance is likely missing indexes. 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: Problem with creating a Index on a temp table

    ScottPletcher (4/2/2015)


    You can't name the indexes yourself unless you insure they're unique. It's a pain, but using dynamic SQL you can do it.

    That's the case for constraints, not for...

    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: Problem with creating a Index on a temp table

    dwilliscp (4/1/2015)


    I have not run across a problem.. yet.. but does this problem also cover indexes on temp tables?

    No. Index names are only unique within the table. 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: Inserts causing locking - HELP!

    Gianluca didn't suggest killing the spid, he suggested identifying it. Once you know what the lead blocker is running, you have a chance to fix the problem.

    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: New stored procedure uses wrong security context

    Edit: nm, misread

    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 process memory has been paged out

    I suspect that's during the startup process, given the tiny amounts of memory. If so, just ignore 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: unable to start sql agent

    Hang on, you work for Microsoft, on the Redmond campus and you're asking people here for help?

    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: Recovering a SQL Server 2005 Database from a Corrupt .mdf

    To start, Microsoft support won't help you. They don't do data recovery, they're not allowed to try.

    You're probably out of luck.

    What happens when you try to attach the database 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: security

    In other words, you shouldn't use WITH OVERRIDE unless you're specifying an invalid value or one outside of recommended ranges and know exactly what you're doing.

    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: Script for alter NonClustered Index to Custered across all databases

    Lowell (4/2/2015)


    start with using SSMS: in object exporter, right click on a server and choose "Activity Monitor"

    SQL Server 8.00.76 is SQL Server 2000 RTM (no service packs). Enterprise Manager is...

    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 - 6,241 through 6,255 (of 49,552 total)