Viewing 15 posts - 1,036 through 1,050 (of 1,246 total)
You're right Phil... I looked at the question too fast and didn't pay close enough attention to the desired output. Mia Culpa...
September 15, 2015 at 12:30 pm
The easiest way is to simply reverse the order of your ROW_NUMBER... Just sort in DESC order instead of ASC...
September 15, 2015 at 11:32 am
Here's an alternate approach...
IF OBJECT_ID('tempdb..#ReportFields') IS NOT NULL
DROP TABLE #ReportFields;
CREATE TABLE #ReportFields (
ReportID INT,
FieldName VARCHAR(20),
TotalNumberOfFields INT
);
INSERT #ReportFields (ReportID, FieldName, TotalNumberOfFields) VALUES
(1,'ID',5),
(1,'FirstName',5),
(1,'MiddleName',5),
(1,'LastName',5),
(1,'BirthDate',5),
(2,'ID',2),
(2,'LastNAme',2),
(3,'ID',1),
(4,'HairColor',3),
(4,'EyeColor',3),
(4,'Ethnicity',3);
SELECT
rf1.ReportID AS Report_1,
rf2.ReportID AS Report_2,
COUNT(*) AS...
September 12, 2015 at 6:53 pm
subramanyammaruthi (9/12/2015)
September 12, 2015 at 1:09 pm
trvlbabie (9/11/2015)
September 11, 2015 at 11:10 am
As stated by others, it's not very clear what it is your trying to accomplish...
On the off chance that I did correctly understand the requirement, give the following a...
September 11, 2015 at 11:02 am
Try it like this...
=Parameters!ReportParameter1.Count
September 11, 2015 at 10:06 am
aleksandra 81219 (9/8/2015)
option 2, EXEC dbo.MyStoredProc '2015-01-01','2015-02-02','2015-03-03', 'ps', 't'
In that case, you'll need to know the maximum number of dates the ERP can throw at you... The problem is that...
September 8, 2015 at 8:56 am
At this point I think we need to see, from the profiler, exactly what's being passed and how it's being passed.
If it looks like this... EXEC dbo.MyStoredProc '2015-01-01,2015-02-02,2015-03-03', 'ps', 't'......
September 8, 2015 at 8:24 am
Unless CR has changed drastically since the last time I used it, it's not going to be able to do anything with the ever changing set of input columns provided...
September 4, 2015 at 9:03 am
Ok... Here's yor original post...
aleksandra 81219 (9/3/2015)
@days='20150401,20150406'
In my code many times i have to...
September 4, 2015 at 8:58 am
aleksandra 81219 (9/4/2015)
September 4, 2015 at 7:20 am
Viewing 15 posts - 1,036 through 1,050 (of 1,246 total)