Viewing 15 posts - 1 through 15 (of 6,036 total)
are you sure it’s what you can call “mobile friendly”?
scrolling through mostly empty spaces with huge headings to find something shown in super small font, and then...
May 9, 2024 at 10:53 pm
join bridge b on t.name COLLATE SQL_Latin1_General_CP1_CI_AS =b.name
OR
join bridge b on t.name =b.name COLLATE Thai_CI_AS
But you better explicitly create #tempt defining desired collations:
December 9, 2022 at 5:29 am
[
Correct... but it didn't convert to FLOAT in other versions either (thank goodness for that!)... It converts numeric literals (constants) that have a value larger than the bounds of...
September 5, 2022 at 1:30 am
From the data provided the latest newdate for Status = 'Newtwo' should be 10-07-2020, not 10-09-2020, as per required result.
Assuming that's right, this should do:
select Max(NewDate) LatestNewDate,...
April 15, 2022 at 3:59 am
CREATE UNIQUE INDEX IX_ID2 ON #IndexTEST(ID2) INCLUDE (ID);
creates unique constraint, exactly as you requested.
Second statement is not needed at all.
April 6, 2022 at 12:16 pm
The whole idea is to create a data set for each individual users + their access level. The output of these joins will bring an addition column as a...
April 5, 2022 at 3:52 am
Add another row to the sample table:
insert into #tbl_backup_path values ('\\x.x.x.x\Database_Backup_Daily\ServerName$SQLEXPRESS\DB_4\DIFF\ServerName$SQLEXPRESS_DB_4_DIFF_20220327_032554.bak')
Does the query produce the expected result now?
April 4, 2022 at 2:26 am
to produce 355753582 rows
Producing 335 mil rows cannot be fast, no matter what indexes are used in a query.
And any suggestions regarding COALESCE replacement might be generally correct but totally...
April 4, 2022 at 2:04 am
Glad you got it working.
This part of the query is still going to cause problems: WHERE CompleteTaxonText Like '%rupicapra%'
That kind of wild card search can't make use of...
March 17, 2022 at 4:04 am
Glad you got it working.
This part of the query is still going to cause problems: WHERE CompleteTaxonText Like '%rupicapra%'
That kind of wild card search can't make use of...
March 17, 2022 at 3:52 am
Try this query:
declare @Taxonomie nvarchar(max) = '%rupicapra%'
SELECT TOP 1
--replacing P.AkcesAutoID with identical A.AkcesAutoID, so only values from dbo.Akces are left in SELECT
A.AkcesAutoID,
Isnull(A.AkcesitPred,'') AkcesitPred, A.Akcesit, A.Rok
FROM...
March 16, 2022 at 6:50 am
The problem is here:
COALESCE( R.VendorName, T.ContractorName, 0)
What is the idea behind that zero in there?
March 10, 2022 at 7:04 am
i make what you say above and remove index not needed
this is my estimated execution plan after remove indexes no needed
https://www.brentozar.com/pastetheplan/?id=HkBWmbWZ9
and this is actual execution plan after...
March 10, 2022 at 7:00 am
update s
set s.PriorityLevel='I1'
FROM Z2DataCore.parts.SourcingNotMappedParts s
WHERE (s.PriorityLevel <> 'I1' OR s.PriorityLevel IS NULL)
AND EXISTS (select * from extractreports.dbo.SourcingNotMappedPartsIDI1 g
where...
March 5, 2022 at 1:46 am
Why do you redo BULK INSERT?
You have all the data in #staging already.
Delete non-valid records and parse the data using a SCV_splitter, for example.
And did you check the content...
March 2, 2022 at 2:49 am
Viewing 15 posts - 1 through 15 (of 6,036 total)