Forum Replies Created

Viewing 15 posts - 17,626 through 17,640 (of 49,552 total)

  • RE: Using NoCompile

    The short answer is, there's no such hint as "NoCompile" and trying to run "EXEC <SomeProcedure> WITH NoCompile" will just get you an error message saying "Incorrect syntax near 'nocompile'."

    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: 2008 and 2005 on same pc

    No idea, which boxes did you tick and what options did you select? Is there another instance on the server? If so, what's it called?

    (it won't automagically show up...

    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: understanding locks

    Maybe, depends if there are problems or not. If no problems, then no.

    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: Log not available error 9001

    Usually IO related, someone fiddled with permissions or the drive with the log file on didn't come online/failed/etc.

    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: understanding locks

    Read this (http://msdn.microsoft.com/en-us/library/ms187101%28v=sql.105%29) and everything under it, and that chapter that Anthony suggested. Also SQL Server 2008 Internals – Chapter 10

    Two I will address.

    how do you unlock

    You don't. SQL Server...

    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: diffrential backup after restore

    The diff will be based on the backup that you restored.

    So let's say you have this scenario:

    Full backup 1

    Full backup 2

    Restore of Full Backup 1

    Differential backup

    Then to restore the diff,...

    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: understanding locks

    What specifically are you unsure on?

    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: Monitoring Blockings

    Chapter 6: http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/

    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 do I get the all columns of a row for the row with the highest value of a column

    SELECT <other columns> FROM

    (SELECT

    <other columns>,

    ROW_NUMBER() OVER (PARTION BY unit ORDER BY ID DESC) AS RowNo

    FROM <Some...

    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: Constant Scan Operator

    CELKO (7/15/2012)


    The short answer is that UDFs and other non-declarative proprietary Microsoft extensions cannot be optimized. They get executed row by row, hence scans.

    Incorrect and a non-sequitur fallacy.

    While data-accessing...

    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: Constant Scan Operator

    The Constant Scan operator just generates any constant values necessary for the query. They're not table scans, they have just about no performance impact.

    If you're looking for the source 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: Ambiguous Column name'MedianCo' pleas help me

    There have been reported cases where not having the updated table in the from clause has resulted in really odd, inefficient execution 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: Ambiguous Column name'MedianCo' pleas help me

    Qualify your column names. I'm going to guess that the MedianCo in the subquery should be from the Total table?

    update TblGas

    set TblGas.MedianCo=

    (SELECT t.MedianCo

    FROM TblGas AS tg INNER JOIN

    Total AS t...

    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 ignoring maximum file size on transaction log

    yup (7/14/2012)


    Yep though've used those but was looking for an easier way, in lots of cases with me mostly on SQL 2000.

    On SQL 2000 CheckDB doesn't run CheckCatalog, so you'll...

    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: What is the best way to encrypt SSNs and FEIN Numbers (Employer Tax ID Number) in SQL Server 2008?

    Welsh Corgi (7/14/2012)


    When you say for the second do you mean that I would need a 3rd party tool for the SSIS Transfer of Data?

    As I said, SQL column encryption...

    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 - 17,626 through 17,640 (of 49,552 total)