Viewing 15 posts - 5,431 through 5,445 (of 59,089 total)
Although the PK is frequently also the clustered index, it's not necessarily so. The keys of non-clustered indexes include the keys of the clustered index, which isn't necessarily the column(s)...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2021 at 1:57 am
You don't really need a pk or any other column from the main table. Also, I assumed you're rather see blank than NULL for missing levels, but if not,...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 9:28 pm
Sorry... missed your previous post about the PK.
I have one in the code I posted using ROW_NUMBER() but that's not going to help you. Help me help you by adding...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 5:55 pm
p.s. Like I said, STRING_SPLIT() isn't going to do the job correctly because it doesn't return the ordinal position of the elements nor does MS guarantee the sort order it...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 5:52 pm
Unfortunately, I can not use DelimitedSplit8K as I can not add functions on the server and I keep getting "'string_split' is not a recognized built-in function name." when I...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 5:49 pm
In the mean time, here's the code to do the given problem with the given data. There are some caveats, though...
WITH
cteEnumerate AS...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 4:16 pm
No matter what we use, the test table is incomplete. Each row needs to have something that uniquely identifies each row as it appears in the original source table. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 3:46 pm
Since you are using SQL Server 2019, would "string_split()" function suit your needs?
https://docs.microsoft.com/en-us/sql/t-sql/functions/string-split-transact-sql?view=sql-server-ver15
The trouble with STRING_SPLIT() is that it does not return the ordinal position of the elements that...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 3:15 pm
Hi All,
Looking for answer on what do I expect to happen on very first day for PL SQL job role, given 5 years of experience in resume. Because it...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 7, 2021 at 3:10 pm
What version of SQL Server were you using on the old server and what are you using on the new server? This is really important because a new "Cardinality Estimator"...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 6, 2021 at 4:19 pm
No. Using (*) as a part of a COUNT is NOT discouraged. It will allow SQL Server to pick the best index to use to accomplish the count. The use...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 6, 2021 at 4:14 pm
It's because <insert drumroll here>, it's an "Estimate". 😀
It's like asking someone how many wheels there are on their truck. Because of "statistics" on the subject and you've identified it...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 6, 2021 at 2:16 pm
SSMS-Setup-ENU.18.8.exe /Passive DoNotInstallAzureDataStudio=1 /install /quiet /norestart /log SSMS_install.log
Awesome. Thanks, Johan.
--Jeff Moden
Change is inevitable... Change for the better is not.
April 6, 2021 at 2:10 pm
I created [_sandbox] database for this purpose, deployed the script and scheduled it to run every minute.
It's been 15 or 20 executions since then - no issues.
I'm telling you...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 6, 2021 at 2:09 pm
Once I fixed all the < and > entitizations and changed the database name to one of the one I have, it ran first time with no issues. I wonder...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 6, 2021 at 3:50 am
Viewing 15 posts - 5,431 through 5,445 (of 59,089 total)