Viewing 15 posts - 1,381 through 1,395 (of 7,614 total)
You should still never shrink a database (at the db level), only specific db files (at the file/file_id level).
July 28, 2021 at 8:43 pm
One must also consider the enormous difficulty of what the MS folks are trying to do.
I get asked all the time about "(simple) rules for tuning indexes" since that is...
July 28, 2021 at 5:54 pm
Or this instead?:
;WITH src
AS (SELECT s.PK
,MAX(CASE WHEN s.ColName = 'Col1' THEN s.Value END) AS Col1Value
...
July 28, 2021 at 5:21 pm
I AM NOT A SQL LICENSING EXPERT.
But as I understand the licensing, if you do ANY production work AT ALL on the instance, then you cannot use Developer Edition for...
July 27, 2021 at 10:25 pm
I'd use REVERSE because it's considerably less overhead.
SELECT BANAME, RIGHT(BANAME, CHARINDEX(' ', REVERSE(BANAME)) - 1) AS BANAME_VALUE
FROM #sample July 27, 2021 at 2:56 pm
Personally I think I'd rather see the days as columns in the same row, i.e. a column for Monday, a column for Tuesday, etc.., with one per month and one...
July 26, 2021 at 7:52 pm
Thanks for the test data! Sorry if I seemed difficult, but I help on up to dozens qs a day, and I just don't have to do data prep for...
July 26, 2021 at 7:49 pm
By default, I think Oracle timestamp only has 6 digit precision for sub-seconds (FULL DISCLOSURE: I haven't been an Oracle DBA since Oracle 8). Try cutting the sub-seconds from 7...
July 26, 2021 at 4:58 pm
Hmm, decent start, but I can't query against it.
I need an actual INSERT statement, that works, like this:
CREATE TABLE #data ( customer int NOT NULL, myDateTime datetime NULL );
INSERT INTO...
July 26, 2021 at 4:34 pm
Phil - Correct. Devs want it all in dev.
Ken - AWESOME "INSTEAD OF" Why didn't I think of that. Is a trigger to delete ## history table records...
July 26, 2021 at 3:04 pm
Phil - Correct. Devs want it all in dev.
Ken - AWESOME "INSTEAD OF" Why didn't I think of that. Is a trigger to delete ## history table records WHEN...
July 26, 2021 at 3:03 pm
That's from the ROLLUP.
The one with NULL, NULL is the global dayname total, so all Mondays, Tuesdays, etc., regardless of year, month.
The one with NULL, YEAR is supposed to be...
July 26, 2021 at 2:59 pm
Well, you fixed it, but glad I helped in some way :-).
July 26, 2021 at 2:56 pm
Is your msdb data or log file full?
Do you see any errors in the SQL error log that could be related to the issue?
July 26, 2021 at 2:35 pm
Agree with Ken. Use a trigger to only write the data you want in the table to begin with.
The only thing Ken left out was a:
SET NOCOUNT ON
at the start...
July 26, 2021 at 2:29 pm
Viewing 15 posts - 1,381 through 1,395 (of 7,614 total)