Viewing 15 posts - 1,411 through 1,425 (of 2,649 total)
If you have the RDL file, you can open that in Visual Studio.
Alternately, if you don't want to open a report URL, you could build a tool that essentially opens...
July 27, 2020 at 5:21 pm
it looks to me like you declare one variable, but use one that never existed a few lines later:
i think you declared "SQL", but dynamically create "strSQL" a few...
July 27, 2020 at 5:18 pm
Priority 1 and 2 should be trivial if I understand this right - for Priority 1, TargetDate = DATEADD(hour, 2, CreatedDate). And for Priority 2, you change the 2 to...
July 27, 2020 at 5:14 pm
This may or may not help, but if you turn Main_CTE into a table (temp table, table variable, physical table... not sure which will be the best for your use...
July 27, 2020 at 4:57 pm
Just to add to Sergiy's response - the "01" indicates that the value is positive. If the value was -126, then you'd get "00" in that octet instead. the "00"...
July 27, 2020 at 2:47 pm
I see one big glaring red-flag in that bit of code - you are calling ExecuteScalar() TWICE! So you are running the command against the SQL database TWICE! That will...
July 24, 2020 at 7:56 pm
How about something like this:
CREATE TABLE [#Temp]
(
[ID] INT
, [Status_ID] INT
, [StartDate] DATE
, [EndDate] DATE
);
INSERT INTO [#Temp]
SELECT
101
, 1
, '01/02/2020'
, '01/28/2020'
UNION ALL
SELECT
101
, 1
, '01/29/2020'
, '01/31/2020'
UNION ALL
SELECT
101
, 5
,...
July 24, 2020 at 7:46 pm
This looks like a gaps and islands type problem to me. I have a question about your data though - how many days after "EndDate" must a "StartDate" be to...
July 24, 2020 at 5:23 pm
Did some testing and digging on my end and best I can figure out is that you would need to either:
A - do calculations in your SQL query
B - create...
July 24, 2020 at 3:29 pm
Yeah, if you could calculate those values on the SQL side, this would be easy. But I enjoy a challenge!
I see where it gets difficult though - the divisor is...
July 24, 2020 at 2:48 pm
So, if I understand what you have properly, you don't have a "Fields!FTE.Value" that you can use to calculate the AVERAGE or the SUM?
I think the logic will be similar...
July 23, 2020 at 10:21 pm
My approach then would be something completely different then. If you are changing the back end disks I would do a completely different approach than what you are doing. Might...
July 23, 2020 at 8:55 pm
My process when i want to know things like that is to check the docs:
If you see here, the CommandType default when not assigned a value in this...
July 23, 2020 at 7:43 pm
Quick review of the code, the error isn't where you indicated. How do I know - that exact line is assigning an integer a value. That's it. It is something...
July 23, 2020 at 6:14 pm
What value do you expect to get when you sum up all of the FTE values? 19.525 is what you would get. If you take the average of all of...
July 23, 2020 at 5:59 pm
Viewing 15 posts - 1,411 through 1,425 (of 2,649 total)