Viewing 15 posts - 46 through 60 (of 458 total)
So here's a period at the end of the chapter, although a rather unsatisfying one.
I played with the T-SQL routine that does the actual backup, tidying up the syntax, adding...
September 14, 2021 at 4:49 pm
Well, now I feel like a complete dork. I re-connected to the server this morning, which was still logged into my account from last week, and still had SSMS open...
September 13, 2021 at 9:58 am
No, the database name is correct. From the VBScript routine, it is passed as a string literal, and those have not changed, nor has the name of any of the...
September 11, 2021 at 8:58 am
When choosing a plan optimiser has to estimate the data sets coming out of each of the objects (tables, views, functions) joined in the query.
it uses indexes, statistics, to...
April 14, 2021 at 2:19 pm
Yes. Eirikur's version of DelimitedSplit8k is fast AND is an inline table valued function. Everyone who can't use String_Split should get a copy. Also, use of...
April 14, 2021 at 9:17 am
Yes. Eirikur's version of DelimitedSplit8k is fast AND is an inline table valued function. Everyone who can't use String_Split should get a copy. Also, use of an inline...
April 13, 2021 at 9:58 pm
You could maybe replace the whole WHILE LOOP'ing function with Eirikur's LEAD splitter. If this is SQL Server 2016+ you could use the built-in STRING_SPLIT itvf (since the...
April 13, 2021 at 8:34 pm
The query could be simplified, no? Maybe something like this
select top(1) p.AkcesAutoID
from dbo.podrobnosti p
join ro.fntStringsToTable('J') ltrs on ltrs.EvidenceLetter = p.EvidenceLetter
...
April 13, 2021 at 8:25 pm
Yes, in theory could be less efficient in some cases than a LOOP join. But it's still reasonable performance. You'll never totally drop off a performance cliff going from...
April 13, 2021 at 7:52 pm
Looking at the two plans, it seems that the TOP 1 version tries to avoid the sort. (With disastrous results.) Apparently it can read the correct sequence from...
April 13, 2021 at 7:49 pm
Well, I was thinking of replacing the entire JOIN clause with WHERE P.EvidenceLetter In('J') [or In('J','K','L')] and so on. I tried that in my initial tests, and it also made...
April 13, 2021 at 7:06 pm
BTW, the TVF does not always have only one record. Usually one, but it is possible to have almost 50. However, that would be an extreme case, and probably an...
April 13, 2021 at 4:11 pm
It also doesn't matter where I put the HASH directive. Both of these work fine, and yield what looks to be the same execution plan:
INNER JOIN RO.fntStringsToTable...
April 13, 2021 at 3:54 pm
Yep, that did it. Inner HASH Join, instead of Inner Join, and the query runs normally. The execution plan is still slightly more convoluted than without the Top clause, but...
April 13, 2021 at 3:34 pm
GOT IT!!! Finally - this site had all the necessary details in one place.
https://www.mssqltips.com/sqlservertip/2143/creating-a-sql-server-proxy-account-to-run-xpcmdshell/
February 10, 2021 at 2:30 pm
Viewing 15 posts - 46 through 60 (of 458 total)