Forum Replies Created

Viewing 15 posts - 16,006 through 16,020 (of 49,552 total)

  • RE: Logic problem in "SET [Quantity_Remaining] = [Quantity_Remaining] - 1"

    briancampbellmcad (10/19/2012)


    IF (SELECT Transaction_Type FROM INSERTED) = 'From Bulk Assignment'

    That is a very common mistake in triggers.

    If 3 rows are inserted in a single operation, one has a transaction type...

    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 mini dump on SQL 2000 with SP3

    Windbg. Google it. You also need the public symbols for SQL Server, a good understanding of hex and low-level code and a lot of time and patience.

    Honestly, my recommendation stands,...

    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 mini dump on SQL 2000 with SP3

    You read dump files with a debugger, something like Windbg (also need the symbols files for SQL Server). That said, it's not something that's easy to understand.

    If it was 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: Database needs reducing in size

    A once-off shrink (followed by index rebuilds) is not a problem. Just don't automate and schedule the shrinks.

    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: Service Broker filling Tempdb

    Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic1374671-1281-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: Save executed queries

    Profiler (SQL Trace) or extended events. The method given by that blog is not complete. It only catches queries whose plans get cached.

    If your logging just has to be close...

    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: ?? on finding records that don't match

    Sounds like you want a NOT EXISTS or NOT IN.

    SELECT <stuff> FROM Table WHERE NOT EXISTS (SELECT 1 FROM AnotherTable WHERE Table.JoinColumn = AnotherTable.JoinColumn)

    SELECT <stuff> FROM Table WHERE Table.JoinColumn NOT...

    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: IS (with nolock) is useful in (multiple join update) Query!!

    Ivan Mohapatra (10/18/2012)


    if it is not useful then why ?

    1) Because it is ignored for the target of update statements (changes always have to take exclusive locks)

    2) Because it allows...

    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 Log Shipping and performance

    If you do go that route, you get 3 things for the price of 1, you get to test your restores and ensure that they really do restore, you get...

    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 Log Shipping and performance

    Perhaps just restore your daily backup every night?

    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: Logic problem in "SET [Quantity_Remaining] = [Quantity_Remaining] - 1"

    Why don't you just have the one trigger that populates bulk transactions and then does the necessary updates? Honestly. I don't understand what you're trying to do here.

    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 Log Shipping and performance

    Log shipping or transactional replication?

    Log shipping doesn't use a distributor, just the normal log backups that you'll be taking already

    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: Add a unique constraint to an existing table

    So people with the same name never share a birthday?

    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 are reading now?

    HowardW (10/18/2012)


    Just finished Proven Guilty (Dresden Files) by Jim Butcher. Really enjoying this series. It's not high fiction, by any means, but as an easy reading escape whilst work's hectic...

    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: Should I become a DBA?!?

    bugg (10/18/2012)


    There is 1 database, so yes its mission critical this thing hums all year round.

    Mission critical as in 24/7/365, if the DB goes down for a few hours...

    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 - 16,006 through 16,020 (of 49,552 total)