Forum Replies Created

Viewing 15 posts - 2,431 through 2,445 (of 3,500 total)

  • RE: Help with a query

    (Pretending to be Steve, but not as smart)...

    You write to a temp table the same way you write to any other table.

    INSERT INTO #tempTable(col1,col2,col3)

    VALUES ('col1value','col2value','col3value');

    OR

    INSERT INTO #tempTable(col1,col2,col3)

    SELECT colA, colB, colC

    FROM...

  • RE: Summing Distinct Records In Report Summary

    I should have realized that you can't use that expression in the filter. I was just trying to point you in the right direction (and that part seems to...

  • RE: Summing Distinct Records In Report Summary

    You probably need to change the stored procedure something like this:

    SELECT

    DM.DriveID,

    DM.FromDateTime,

    Acct.AccountID,

    Acct.Name,

    Inc.Description [Incentive],

    DPaCT.ProcedureProjection [Proc_Proj],

    DPaCT.ProductProjection [Prod_Proj],

    DPaCT.ProceduresPerformed [Proc_Perf],

    DPaCT.ProductsCollected [Prod_Coll],

    DPaCT.QNS [QNS],

    DPaCT.FTD [FTD],

    (isnull(DPaCT.ProductsCollected,0))-(isnull(DPaCT.ProceduresPerformed,0)) [DRBC]

    ,ROW_NUMBER() OVER (PARTITION BY Act.Name ORDER BY Acct.Name) AS rn /* note...

  • RE: Variable - Expression Builder

    Maybe

    =DateAdd(DateInterval.Day, -1, Today)

    (wow, makes me hate SSRS!!!)

  • RE: How Do I ? Batching the data

    Something like this?

    SELECT x.id

    , DENSE_RANK() OVER (ORDER BY x.id) as DenseRnk

    FROM

    (SELECT 'A123' AS ID

    UNION ALL

    SELECT 'A124'

    UNION ALL

    SELECT 'A124'

    UNION ALL

    SELECT 'A123'

    UNION ALL

    SELECT 'A127') x

    And then do like Phil said and...

  • RE: Executing Stored Procedure with Parameter

    What are you trying to accomplish with the >= comparisons here:

    where [term]=@term and ([position]=@position)>0

    and [value_per_month]=@value_per_month >0

    ?

    if you're trying to validate that the values passed to @position and @value_per_month are...

  • RE: CTE TO TEMP TABLE

    instead of this:

    SELECT * FROM rCTE

    ORDER BY Item_NO ASC

    insert into the temp table

    INSERT INTO #TempTable(Columns)

    SELECT columnlist

    FROM rCTE

    ORDER BY Item_No ASC;

  • RE: How To Create Report From Windows Event Log

    Start here maybe? (MS Log Parser utility)

  • RE: Hide alternate rows depending on value of row in SSRS Tablix

    You might be able to set the VISIBLE property of the control in the report based on the value in it... other than that, I'm not sure how you would...

  • RE: Hide alternate rows depending on value of row in SSRS Tablix

    You do realize that reports are read-only, right? You can prompt for parameters, but only before the report is run. That would be the only place you could modify...

  • RE: Hide alternate rows depending on value of row in SSRS Tablix

    Are you just trying to filter out the records that do or do not meet some criterion? If so, use a Filter and tie it to a parameter value, so...

  • RE: Advice for Trainers

    Regarding teaching caution: Some people might say we go overboard. The attendees must have their manager sign and return a document that says they understand that they are responsible for...

  • RE: Reports are not working

    I would start with comparing the differences between the reports that are working and those that are not. What errors do you get when you try to run the reports...

  • RE: can I call a parameterized stored procedure in PowerPivot?

    That's what I was thinking... Given that not everyone has a DW handy, it would make sense to me to be able to simplify the connection to the database... so...

  • RE: can I call a parameterized stored procedure in PowerPivot?

    I think you can, it's just that the interface is extremely unfriendly. (Another reason it works much better against a DW).

    After posting this, I got off my lazy butt and...

Viewing 15 posts - 2,431 through 2,445 (of 3,500 total)