Forum Replies Created

Viewing 15 posts - 1,381 through 1,395 (of 3,489 total)

  • RE: Split data into two tablix

    Papil - Tuesday, January 9, 2018 4:55 PM

    Is it possible to split the tablix data into 2 parts. I have created two...

  • RE: Row Over Partition

    why what works? The ROW_NUMBER() OVER (PARTITION...) part?
    PARTITION OVER is super simple - it's analogous to grouping in a totals/aggregate query, but you still get the individual records, which...

  • RE: t-sql 2012 error checking logic

    I find it hard to believe you've been coding this long (and asking questions) and can't write a simple correlated subquery.

    Say I want to show all the details...

  • RE: t-sql 2012 error checking logic

    You could use
    WHERE EXISTS  and correlated subqueries. It will slow things down, but right answers are better than fast answers.

    Do you inherit these stored procedures or...

  • RE: How to subtotal an expression

    NineIron - Friday, January 5, 2018 8:33 AM

    I have a column, Column3,  that has the expression =iif(Fields!ARR.Value=1, Fields!COLL.Value,0). Is it possible to sum this expression...

  • RE: dynamic filtering in SSRS

    Thanks Sue. I'll have a look.
    I may not have been thinking... probably the really simple answer is "Mark the optional parameters as optional!"  Yeah, "here's my sign!" =)

  • RE: create procedure gets stuck on select

    Could you explain what this does? (Is this Oracle?)
    SELECT
    @Od = :a2,
    @Do = :a3,
    @TipSobe = :a1,
    @KodaCenika = :a4;

  • RE: BULK INSERT ERROR

    It's probably not a syntax issue. It's a permissions issue. If it were a syntax issue, the code would stop and you'd get an error message that the T-SQL "statement...

  • RE: SQL Server Over Partition

    Welcome aboard!
    since you appear to be new here, you owe it to yourself to read this article: 

    December 31, 2017 at 12:33 am

    #1973991

  • RE: CTE Query to find Unique Status for Update Per Machine

    Note to self: last status check per computer
    Without data, it's harder to see what's going on, but you could try this pattern.  I'm using AdventureWorks2014 for data.

  • RE: Shrink all user database files

    Why would you want to do that? I can see shrinking a database if you have to move it and space is at a premium. But that's hopefully a rare...

  • RE: SQL Grouping

    Remove the s.StateDuration from the GROUP BY. You're SUMMING that... Your query should look like this:
    SELECT s.AgentName
      , s.ReasonCode
      , Sum(s.StateDuration) AS 'StateDuration'
    FROM (

  • RE: Sum case question

    Maybe this article by Jeff Moden will help...

  • RE: Help with Trigger emial

    This sounds like something you'd want to schedule with a job instead of using a trigger... well, at least to my mostly ignorant way of thinking. Then you could find...

  • RE: update with random values

    I just did this earlier today. I downloaded the most popular firstnames and lastnames from some website... so they're in their own tables.  Then I did this (appended a partial...

Viewing 15 posts - 1,381 through 1,395 (of 3,489 total)