Viewing 15 posts - 946 through 960 (of 5,843 total)
YB makes a VERY key point: formatting stuff should be done outside SQL Server where at all possible!!! Don't waste any of the precious and expensive resources on your SQL...
June 27, 2016 at 12:44 pm
I am sorry to have to say this, but when it takes that much effort to explain what you need then it goes way beyond the amount of time virtually...
June 27, 2016 at 8:31 am
1) Your WHERE clause is VERY complex for the optimizer, leading to bad estimates and both a suboptimal plan and multiple spills to tempdb for sorting.
2) You have functions around...
June 25, 2016 at 7:49 am
1) You should always look for set-based solutions and avoid "looping" of any kind if you can avoid it.
2) Avoid scalar and multi-statement table valued functions at almost any cost....
June 24, 2016 at 7:44 am
If you are ever planning on using this UDF against data in a table (as opposed to onesy stuff passed in from an app) then do NOT solve this problem...
June 22, 2016 at 9:41 am
1) There are umpteen things that could be at play here. Search the web for queries that tell you what is consuming tempdb resources.
2) Glenn Berry's SQL Server Diagnostic...
June 22, 2016 at 7:36 am
Recombinant (6/21/2016)
TheSQLGuru (6/21/2016)
June 21, 2016 at 1:29 pm
How about a poorly configured or overwhelmed IO path between host and SAN? I've seen a silly 1Gbps iSCSI IO path at clients more times than I care to remember.
June 21, 2016 at 1:09 pm
Recombinant (6/21/2016)
June 21, 2016 at 6:45 am
I would do it with an AND NOT EXISTS (SELECT ...) clause myself.
June 17, 2016 at 12:23 pm
Too many "it depends" here. In general I always look to reduce indexes/indexing when they are direct or near duplicates. Just a LOT of cost in many ways for them....
June 17, 2016 at 10:18 am
1) I think to see the second from last character you would need substring(field, len(field) - 1, 1) or some such. Use ASCII to see the character code.
2) Perhaps there...
June 16, 2016 at 11:56 am
Maybe there is a terminator issue in the raw data file? there are char(10)s, char(13)s and a pair of them that can be used for line terminators and most file...
June 16, 2016 at 7:32 am
dan-572483 (6/14/2016)
June 14, 2016 at 1:22 pm
Viewing 15 posts - 946 through 960 (of 5,843 total)