Viewing 15 posts - 1,726 through 1,740 (of 13,838 total)
can be lots of things
November 21, 2021 at 7:11 pm
That's probably because you are summing over the joined dataset and the joined dataset contains more rows than the dataset purely from SCPOMGR.FCSTPERFSTATIC – ie, you are probably summing some...
November 21, 2021 at 6:59 pm
I haven't looked at the tables, but I think a CURSOR may be worth considering here. I've rewritten your query to use a cursor – untested, see what you think:
November 19, 2021 at 3:45 pm
Something like this?
DECLARE @Today DATE = GETDATE();
DECLARE @Yesterday DATE = DATEADD(DAY, -1, @Today);
DECLARE @TodayLess7 DATE = DATEADD(DAY, -7, @Today);
DECLARE @Hr TINYINT = DATEPART(HOUR, GETDATE());
SELECT @Yesterday
...
November 19, 2021 at 12:51 pm
To make things a little clearer, here is that code again, but reformatted:
USE QPulse5Training;
GO
DECLARE @outPutPath VARCHAR(50) = 'C:\xp'
,@i BIGINT
...
November 19, 2021 at 12:17 pm
The first problem that we have in trying to answer this is that we cannot see your database and therefore it is difficult to advise on the validity of JOINs.
Regarding...
November 19, 2021 at 12:02 pm
With >3,000 points, you should know to provide a few things:
November 19, 2021 at 11:53 am
That won't do it. When processing is transferred to your CATCH block, your SELECT merely returns the error message and the error is swallowed. I suggest the following slight modification:
November 18, 2021 at 7:25 pm
It depends. Can you show us what is in your CATCH block?
November 18, 2021 at 6:49 pm
SELECT
[Shelf Location], date /*, ...*/FROM (
SELECT *, DENSE_RANK() OVER(PARTITION BY [Shelf Location] ORDER BY date DESC) AS rank_num
...
November 17, 2021 at 8:01 pm
Without DDL and sample data, this is largely an educated guess, but may get you started
With Ordered as (SELECT Grp = DENSE_RANK() OVER (PARTITION BY ShelfLocation ORDER...
November 17, 2021 at 8:00 pm
Even 12 years ago, as far as I remember, SSIS would have to have been installed to allow the unattended running of SSIS packages, and the same is true today.
However,...
November 17, 2021 at 5:51 pm
No. If you really need/want to convert the unique index to a primary key, you will have to drop the index and create the primary key - I don't...
November 17, 2021 at 4:40 pm
If we were to provide the code which produced the desired results, but using your a,b,c,x,y,z data, it would work fine using this sample data, but probably not for your...
November 17, 2021 at 2:34 pm
Sounds like it's encode problem, if I am honest. Perhaps, for example, you're opening the file expecting it to be encoded in UTF-16 and it's actually in ANSI-1252 or...
November 17, 2021 at 11:23 am
Viewing 15 posts - 1,726 through 1,740 (of 13,838 total)