Forum Replies Created

Viewing 15 posts - 2,686 through 2,700 (of 6,486 total)

  • RE: Non sargable mightmare

    Jeff Moden (7/3/2008)


    Matt Miller (7/3/2008)


    but still - technically possible....

    Maybe THAT'S where you should use a cursor! 😀

    I'm assuming that's what the poor specialist would be doing...cursing...a LOT....:w00t:

    Hey -...

  • RE: A discrepancy in the amounts being totaled

    Of all the problems you could possibly have - picking the wrong date range on the the verification is the easiest one to fix....:D All I can say is...

  • RE: Check for Existence before delete (Set Based Delete)

    Lynn Pettis (7/3/2008)


    Yep! That's why I tried the logical exercise. Pretty much helps put it in perspective though.

    😎

    It's late on a thursday before a holiday, so I had...

  • RE: Trigger Not Firing

    SQL Profiler will capture the info if you use the stored proc sp* events. If will show you what is being fired....

  • RE: Need variable in ORDER BY clause with Distinct

    The CASE statement needs to be able to consistently return a single data type (so all of the "then's" are getting cast to a single datatype). In this case...

  • RE: Trigger Not Firing

    Jim - that trigger is working. It's just not doing what you want of it.... you're looking for some kind of runing total, and that syntax ain't going...

  • RE: Check for Existence before delete (Set Based Delete)

    The OP mentioned that the DAY column is the clustered index key. Assuming that's the case - there's not going to be a table scan, but a clustered index SEEK....

  • RE: A discrepancy in the amounts being totaled

    Rod at work (7/3/2008)


    You're right, I did forget to mention the data types. In the MoneyPools table both the AnnualAllocation and the RemainingValue columns are of type money.

    In the...

  • RE: How to write CROSS JOIN using subquery?

    Assume you had the following

    Employee table

    employeeID Title

    1 boss

    2 ...

  • RE: Non sargable mightmare

    GSquared (7/3/2008)


    Jeff Moden (7/2/2008)


    GSquared (7/2/2008)


    cast a curse of impotence on the original coder and all his descendants for a thousand generations

    Ummmm... isn't THAT a bit of an oxymoron? 😀

    Didn't say...

  • RE: How to write CROSS JOIN using subquery?

    sead.j (7/3/2008)


    I didn't look details, but now I see that your code is (almost) the same - just remove '@' before Employees and Orders.. that's all...

    BTW. Now I'm breaking my...

  • RE: CLR trigger question

    andy.gray (7/3/2008)


    Hi guys, thanks for the prompt replies.

    I understand your concerns about performance but I do need to do a lot of string manipulation. I'm trying to work around a...

  • RE: EXEC a text string?

    You have to build the entire string in a variable FIRST, then issue the exec on the variable.

    Something like:

    DECLARE @FirmCode as varchar(5)

    SET @FirmCode = 'File1'

    declare @sql as varchar(500)

    set @sql =...

  • RE: CLR trigger question

    Just curious - what made you go for a CLR trigger instead of a T-SQL one? This would be a whole lot more straightforward if the process stayed in...

  • RE: An MVP From Way Down South

    rbarryyoung (7/3/2008)


    Woo-Hoo! Way to go Gail! :w00t:

    What an excellent choice by Microsoft. What really strike me about Gail is the incredible precision and accuracy of her responses. Despite...

Viewing 15 posts - 2,686 through 2,700 (of 6,486 total)