Viewing 15 posts - 646 through 660 (of 754 total)
You have no primary keys or indexes. SQL Server has to scan the table for every query/subquery/CTE.
Your datatypes seem questionable.
June 14, 2021 at 1:35 pm
What queries use those indexes? Do they (always) use the same columns as predicates (where clauses, joins, order bys)?
Any queries that use the index must use the first index key...
June 9, 2021 at 8:56 pm
Unfortunately, you missed the requirement that the source and target tables must have identical indexes.
May 24, 2021 at 9:05 pm
A case statement should do it:
-- Change operators appropriately if not inclusive
CASE WHEN Amount >= Column1 AND Amount <=...
May 14, 2021 at 1:20 pm
Assuming you have a CreatedDateTime or equivalent that is always populated (e.g., has a default value & nobody explicitly sets it to null), yes, it seems possible.
You'd probably use a...
May 3, 2021 at 1:32 pm
Based on To cool datacenter servers, Microsoft turns to boiling liquid => 3M Immersion cooling for data centers, it sounds like it's one of these: Fluorinert™ Electronic Liquids
April 28, 2021 at 3:34 pm
It's extremely difficult to get even mostly right, and tends to be a trial and error process of discovering and fixing the logic for those that were mishandled... without breaking...
April 23, 2021 at 1:20 pm
I considered submitting a request asking for a way to suppress the dark mode request.
I actually have to use DATEDIFF_BIG. The fact they couldn't be bothered to implement the corresponding...
April 22, 2021 at 5:19 pm
Note that Microsoft is preparing to switch, yet again, to a different feedback system.
Microsoft will be moving away from UserVoice sites on a product-by-product basis throughout the 2021 calendar year....
April 22, 2021 at 1:28 pm
That link leads you to KB5001090 - Cumulative Update 10 for SQL Server 2019 which has two links:
Microsoft Download Center: Download the latest cumulative update package for SQL Server 2019...
April 14, 2021 at 3:36 pm
Something like:
CASE WHEN A.currency = B.currency THEN A.value ELSE A.value * C.conversion_rate/100 END
Or, to simplify logic, if you have a self reference in the conversion table for...
April 14, 2021 at 3:25 pm
What do you mean "I wasn't able to log in"? What error message did you get?
What instance name did you use? For a default instance, you should have been able...
April 13, 2021 at 10:29 pm
tracks all the CUs & GDRs with links.
April 13, 2021 at 10:18 pm
Correct.
You will need to either delete rows with conflicting data (if you can get away with that... you might want to copy the data to an error table to review...
April 13, 2021 at 4:28 pm
https://www.sqlservercentral.com/forums/forum/sql-server-2017/sql-server-2017-development is probably more relevant... but close enough.
You can probably use something like
sum(CASE WHEN rt.ZoneFk = 3 THEN mbs.Count ELSE 0 END)
for the filtered TotalRecordCount.
Beat to...
April 9, 2021 at 4:04 pm
Viewing 15 posts - 646 through 660 (of 754 total)