Forum Replies Created

Viewing 15 posts - 49,066 through 49,080 (of 49,552 total)

  • RE: Trigger Order Of Execution?

    Insert triggers, like any other trigger, fire once per operation. If an insert inserts 10 records into a table in a single operation, the trigger will fire once and 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: Trigger Order Of Execution?

    What do you mean by 'didn't work'? Threw an error? Gave unexpected results?

    One thing I noticed in the 'section 1' was the line SET ROWCOUNT 1 which, from what 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: Trigger Order Of Execution?

    Order of operations within a trigger is the same as within any other sql code, from top to bottom according to normal control flow commands (while, if)

    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: Total and subtotal - Help pls.

    I think you left out the group by

    SELECT c.vcPostcode, COUNT(r.SFID), COUNT(t.iCALL_RESULT_ID)

    FROM Customer c LEFT JOIN Contact_Result r

      ON c.SFID = r.SFID

    LEFT JOIN Contact_type t

      ON r.iCALL_RESULT_ID = t.iCALL_RESULT_ID

      AND...

    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: Trigger Order Of Execution?

    You can set which trigger is the first to fire and which is the last. If that isn't done, then the triggers will fire in no defined order.

    Looking at...

    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: Total and subtotal - Help pls.

    Can you post your table structure, some sample data and expected results please? That would make it much easier for us to help 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: Data type conversions

    Thanks, those functions will be very useful. I know IsNumeric was shaky, I didn't realise it was this shaky.

    Another interesting discovery from this - CAST('8,92' as FLOAT) throws an error,...

    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: Data type conversions

    The code posted is the query I found. I've tried converting to numeric, same result.

    Thanks Sergiy, but that was the first thing I tried, along with case, and no joy.

    Thanks...

    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: intelliTXT

    Getting it too. Personally I find it quite annoying as the popups aren't always that relevant and they popup 'by accident' interupting my reading.

    Some new advertising perhaps?

    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: Error : 17883 Problem with Scheduler

    We had a very similar problem a while back, and after intensive debugging and assistance from MS support, tracked it down to occational IO problems with the SAN and 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: What alternative ideas are their when you have 9 update statements to a table variable?

    The indexes will speed up the update because they greatly increase the speed of finding the records to update. The time taken to update the indexes is minimal.

    How many...

    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: Text vs. Varchar and the 8060 Limit

    You can't do things like "WHERE txtField LIKE '%Smith%'" with a text column, for instance.

    That's not true, you can use LIKE and IS NULL on a text column, you can't use any...

    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: The Longest Day

    It's the winter solstice and shortest day down here. Sunrise was about half past 6 this morning and sunset will be around quarter to six this evening. (about, I'm 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: problem in Insert INTO using a select statement

    You don't need the brackets around the select. Also the Order By is not necessary in an insert. The concept of order of rows in a table is meaningless. Order 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: Technology for Fun

    Isaac Asimov's robot stories, especially The Positronic Man (with Robert Silverberg). The book I, Robot is a collection of short stories

    Also Arthur C Clark's Rama series and Songs...

    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 - 49,066 through 49,080 (of 49,552 total)