Forum Replies Created

Viewing 15 posts - 31,591 through 31,605 (of 49,552 total)

  • RE: DBCC CheckDB Errors

    Kwisatz78 (7/28/2010)


    Hi Gail 🙂

    In response to your questions, the queries I am using are below

    The second is not going to work properly. The order by on the date column will...

    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 Errors

    Kwisatz78 (7/28/2010)


    1. Update column to a legal value.

    I have used SQl and DBCC PAGE to try and figure out what data is missing. What we have found 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
  • RE: How to know what statistics are used on a given query?

    There's no way to tell that for certain. You can guess, based on the predicates in the query and the joins which ones will likely be used.

    Or, if you have...

    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: Insert Into - Please Please Help Me !

    leebuckman (7/28/2010)


    My colleague is asking me why the below works ?

    Interestingly, if i specify the insert for just one customer ie 8458923, it is correct every time. (so the order...

    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 Optimization

    harit79 (7/28/2010)


    Query takes only 4-5 second but we have a requirment that logical read should be <=5000.

    Why? Where's the logic in that?

    If the query is not a performance bottleneck, you...

    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: Insert Into - Please Please Help Me !

    leebuckman (7/28/2010)


    But the question remained, why did it work before and does not now, hence my post on here !

    Basically your colleague was depending on undocumented and incorrect behaviour that...

    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 Optimization

    Why the requirement of logical reads under 5000? That's an odd requirement for tuning. Usually one tries to get it as fast as possible, or the reads as low as...

    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: Insert Into - Please Please Help Me !

    leebuckman (7/28/2010)


    All,

    Thanks for the replies but i am still at a loss here. Let me explain further and simplify the query and exactly what i am trying to do. I...

    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: Max degree of parallelism and affinity mask

    Also note that MAXDOP sets the maximum allowed degree of parallelism. It doesn't set the exact parallelism used.

    Just because there's a MAXDOP hint on a query doesn't mean SQL...

    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: Max degree of parallelism and affinity mask

    sivaprasad (7/27/2010)


    MAXDOP - Maximum Degree of Parallism ....

    When you quote from Books Online or MSDN, you should site your source.

    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: Max degree of parallelism and affinity mask

    sivaprasad (7/28/2010)


    Say i have 8 processor and affinity mask is set to 4.What will happen if i gave max degree of parallelism as 6??Is it possible???

    Yes, you can have...

    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 transaction Roll back

    mdfaraz (7/27/2010)


    1. Is there a limit to the number of record inserts SQL server 2008 can handle.

    Only limited by your hardware, but it's not a few thousand. I've...

    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: Transaction (Process ID 59) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction

    Please post your question in a new thread. Thank you.

    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 import csv file using some conditions In SSIS ?

    Duplicate post. No replies to this thread please. Direct replies to:http://www.sqlservercentral.com/Forums/Topic959826-148-1.aspx

    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: Insert into table causing deadlocks?

    That looks like traceflag 1204's output. Limited and hard to read.

    Switch traceflag 1204 off, switch 1222 on. The deadlock graph will have two sections, where it shows the processes involved...

    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 - 31,591 through 31,605 (of 49,552 total)