Forum Replies Created

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

  • RE: Report subscription sending duplicates

    Update, I was wrong. neither NOCOUNT ON nor XACT_ABORT ON were causing it. I added  SET TRANSACTION ISOLATION LEVEL SERIALIZABLE and WITH (updlock) and that produced no duplicates. Per this article 

  • RE: Data driven subscriptions, step 3

    Well, I got it. 

    SELECT 'Audit Report' AS [Subject],
    (
    SELECT STUFF((
    SELECT ';' + Email
    FROM ReportSubscription a
    WHERE a.ReportGroup IN ('To')
            AND a.Active = 1
    FOR...

  • RE: Percent of number in top row

    Thank you Jason. I had concocted a long CROSS APPLY method, but this FIRST_VALUE function is awesome. Thank you,

    Amy

  • RE: Using LIKE in drop down parameter

    Geoff,

    To be perfectly honest, I'm not really sure why you're solution worked, but it did. Wait, I think I got it, but I don't know if I'd ever have...

  • RE: Using LIKE in drop down parameter

    The report data is populated from a stored procedure. But in order to populate the drop down list, I set up another dataset from a query.

    SELECT DISTINCT cipcode,...

  • RE: The Cascading (CROSS) APPLY

    Thank you again for helping me find a solution, Chris. I ran your new query against the older one, and the execution plans using the source data are attached. ...

  • RE: The Cascading (CROSS) APPLY

    Thank you Chris. I've just added another person to the temp table. Person #4 makes $45.00 exactly working at two different jobs. Using ROW_NUMBER, we get one row...

  • RE: The Cascading (CROSS) APPLY

    Chris, You've probably forgotten all about this, but after some other projects finished, I finally got back to this. I ran into a problem I hadn't thought of. There are...

  • RE: The Cascading (CROSS) APPLY

    Chris, Thank you for this article. I have been trying to figure out a solution to a problem I've had for a while, and could only come up with work...

  • RE: Joining with large table

    I can't believe this. My query went from nearly 10 minutes to 2 seconds. I had this idea that the data had to be summed before joining. The dangers of...

  • RE: Joining with large table

    Ok I was assuming the data was already in two tables that could be indexed. My bad!!!

    Oops, I think I misunderstood something. The data are in two separate tables that...

  • RE: Joining with large table

    OK, thank you for the link on ancient ceramic toilets 😛 But anyway, you are asking why don't I just put it in a regular table? Correct? The answer...

  • RE: Joining with large table

    I'm sorry, but I don't know what a bog is (relating to SQL, that is). I googled it, and didn't see anything obvious.

  • RE: Updating specific rows

    Alan.B. -- not only did it work, but I learned something completely new. Thank you.

    Amy

  • RE: sum every two number combination

    Thank you for this solution. I had originally tried to do a recursive cte, but though I'm beginning to understand how they work, I haven't been able to succussfully...

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