Viewing 15 posts - 346 through 360 (of 748 total)
Does it work?
Yes, that is using aliases everywhere the tables are referenced.
July 1, 2022 at 6:21 pm
The syntax is incorrect because you have aliased both tables used in the query, but then still reference the original table names everywhere except in the join between sn and...
July 1, 2022 at 5:14 pm
Dealing just w/ the question of updating, and not recovering space:
If you are updating all rows, can't you just drop the column and re-add (wondering if/why you still need the...
July 1, 2022 at 1:17 pm
https://github.com/OpenQueryStore/OpenQueryStore
https://dbafromthecold.com/2017/08/19/query-store-functionality-in-earlier-versions-of-sql-server/
(Haven't tried it, not endorsing -- just stumbled across this recently)
June 30, 2022 at 7:19 pm
You will probably want to use LEAD windowing function. -- e.g.,
DATEADD(day,-1,LEAD(EffectiveDate ) OVER (PARTITION BY PartNum ORDER BY EffectiveDate))
-- Assumes RevisionNum is correctly determined in order...
June 30, 2022 at 7:13 pm
Why do you want to use dynamic SQL? Why not a procedure specific for each table? How many tables are you archiving?
You can't make either a procedure or a job...
June 29, 2022 at 1:39 pm
I see a fixed font and formatting tools have disappeared completely
June 29, 2022 at 1:22 pm
But it seems like MSSQL is doing something quite different
What specifically are you seeing for input vs. output?
June 28, 2022 at 7:41 pm
If you are trying to connect the trace file which SQL Server is currently writing to, you will get "Access is denied" because the file is locked.
Erland Sommarskog, SQL Server...
June 28, 2022 at 3:51 pm
Unless you have a powerful server, I suspect "loads all the tables data into memory" may be a problem. You may be better off exporting the data to flat files,...
June 28, 2022 at 2:17 pm
SSMS doesn't know you want to exclude copy-only backups when you are doing a restore using the GUI. It is allowable/valid to restore a copy-only backup. It might be nice...
June 27, 2022 at 2:55 pm
Use DelimitedSplitN4K, instead
I started to suggest STRING_SPLIT until I noticed 2014. Definitely DelimitedSplitN4K over that loop.
krypto69: Is that function call only used once for a title, or are you using...
June 24, 2022 at 7:33 pm
Google Search returned a couple of posts indicating it seemed to be SSRS error.
Check the install log files for details in cases of install errors. You might find more information...
June 24, 2022 at 6:24 pm
No, don't mess w/ the system table.
Just use your own table, function, or hard-coded case statement for Creole -- or other unsupported languages (don't use a comma-delimited list -- use...
June 24, 2022 at 6:18 pm
Viewing 15 posts - 346 through 360 (of 748 total)