Viewing 15 posts - 2,431 through 2,445 (of 3,500 total)
(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...
July 9, 2015 at 7:15 pm
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...
July 9, 2015 at 1:44 pm
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...
July 8, 2015 at 3:27 pm
Maybe
=DateAdd(DateInterval.Day, -1, Today)
(wow, makes me hate SSRS!!!)
July 6, 2015 at 3:54 am
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...
July 6, 2015 at 1:25 am
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...
July 5, 2015 at 9:20 pm
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;
July 3, 2015 at 12:26 pm
Start here maybe? (MS Log Parser utility)
July 2, 2015 at 5:19 pm
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...
July 2, 2015 at 5:07 pm
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...
July 2, 2015 at 4:56 pm
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...
July 2, 2015 at 4:14 pm
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...
July 2, 2015 at 4:05 pm
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...
July 2, 2015 at 3:52 pm
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...
July 2, 2015 at 1:10 pm
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...
July 2, 2015 at 12:55 pm
Viewing 15 posts - 2,431 through 2,445 (of 3,500 total)