Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)

  • RE: SQL Battleship

    The first time I played the computer sunk my entire fleet in 29 shots while I only scored 3 hits!!

    Grrrr, the code must have BUGS!! 😉

    Thanks for a new...

  • RE: BCP still creates 0 byte file if no results

    I think what I ended up doing was using a simple select statement to find if the proc would return any results then if it did not, the proc was...

  • RE: Twist on SSRS Sample 'Sales Trend 2008'

    Here's what finally worked in case anyone else needs it:

    This is the Expr for the %Growth textbox

    =Code.GetGrowthValue(Sum(iif(Fields!Period.Value="YTD",Cdbl(Fields!Qty.Value),Cdbl(0))),

    Previous(Sum(iif(Fields!Period.Value="YTD",Cdbl(Fields!Qty.Value),Cdbl(0))), "matrix1_Year"))

  • RE: Weekly date ranges.......

    I looked at some Calendar table ideas and it seemed you still needed logic for how to handle when a week spans 2 months. I certainly may be over-complicating this....

  • RE: Weekly date ranges.......

    Hi all,

    I was looking for examples for my specific situation and found this thread. I thought I would post my solution in case it helped others.

    My specific requirement is to...

  • RE: Queries for mirror table auditing-without using cursors

    Anyone, Anyone 🙂 Is it not possible to replace the cursor in the stored procedure with a set based solution? The cursor works and fulfills my business requirement...

  • RE: Orders where ALL line items are discounted

    That works. I was trying to use count(*) to compare count of all lines with count of lines that have discounts. Just was not getting it. Your...

  • RE: How to retrieve Windows computer name in DTS ?

    That worked. Thanks!

  • RE: BCP queryout speed

    More strange findings when using BCP:

    The proc has a cursor. I added an audit log step to the proc so it inserts audit info to another table.

    When I run...

  • RE: Trigger to capture TSQL statement

    Do you guys have any articles or links you can point me to on server side traces? I can't seem to find how to trace a change to a...

  • RE: Trigger to capture TSQL statement

    Thanks for the info.

    I am trying to catch somebody with their hand in the cookie jar 😉

    There is some rogue app or custom code somewhere causing an undesired update.

    This does...

  • RE: Inserting TAB into string

    Ahh, I was only looking in QA then copy/paste to Notepad. The finished output does have the tab.

    Thanks.

  • RE: Hosting SQL 2005 on Windows XP-Windows authentication

    Thanks for the reply. I was able to get this working. The client is actually a Windows XP Home edition (I get all the doozies). The login...

  • RE: Trigger lock hint

    The status and type only appear in the ordheader, not ordline. So I don't think Inserted would contain the status and type.

  • RE: Trigger lock hint

    I'm quite the junior scripter so any extra info would be appreciated.

    1) are u saying use 2 triggers, 1 for update, 1 for insert?

    2) where would @@rowcount be used? ...

Viewing 15 posts - 1 through 15 (of 17 total)