Viewing 15 posts - 1,216 through 1,230 (of 5,841 total)
Try the awesome CASE keyword:
CASE WHEN rankord IS NULL THEN LAG(., -1) ELSE rankord END and group on that to get the actual sequence of ranking? No idea if this...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 24, 2016 at 7:35 am
Since it is repeatably the first-run-of-the-day perf problem then fine AND it is dynamic SQL it REALLY sounds like a disk-IO-slowness issue. As someone said, track the IOs yourself early...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 19, 2016 at 4:51 am
15K HDDs doing sequential large-block writes can often push 125MB/sec. A few disks of that and you have some very substantial write capabilities for tlog flushes. Note the HUGE caveat...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 18, 2016 at 12:12 pm
GilaMonster (3/18/2016)
Sergiy (3/17/2016)
Can you name anything else?
Statistics mostly, table variables don't have them. Lots of rows in a table variable can result in really bad row count estimates by the...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 18, 2016 at 11:53 am
That's really good news for you!! Hope you can keep the train on the tracks and on schedule until the spiffy new hardware is online!
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2016 at 11:22 am
A) I actually use physical cores on NUMA for my MAXDOP number.
B) Someone needs to convince your company that their physical resources/configuration (virtualized here?) is unacceptable for optimal performance. I...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2016 at 10:11 am
1) There are often times when using a temp table (NOT table variable!!) can make a process be WAY more efficient due to widely varying amounts of rows or key...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2016 at 10:07 am
But generally is it better to have data files on a slower drive and log files on SSD (I assume it depends)? Might be worth mentioning that there is asynchronous...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2016 at 8:13 am
You haven't given us the most important factor here: what EXACTLY constitutes your X drive, and what else is on it? If it is a single or few disks, 8...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 17, 2016 at 7:58 am
JarJar (3/16/2016)
do you have a link that you can recommend for sql san configuration optimization? i am not a san admin so it would...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 16, 2016 at 8:44 am
Grab yourself a copy of https://www.red-gate.com/library/sql-server-transaction-log-management
Dang it! I keep forgetting to recommend that book to clients and posters with similar questions!! :blink:
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 16, 2016 at 7:40 am
I'm still waiting for the performance review of the new 2016 string splitter function I asked for long ago before all this mish-mash about NULL sidetracked the topic. 😀
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 16, 2016 at 7:36 am
JarJar (3/16/2016)
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 16, 2016 at 7:33 am
You are on SQL Server 2012. What you ask seems tailor made for the windowing function enhancement that came with that version. LAG in this case I would think.
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 15, 2016 at 2:09 pm
hoseam (3/15/2016)
DECLARE @End_Date DATE
,@The_Date ...
Best,
Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru on googles mail service
March 15, 2016 at 7:57 am
Viewing 15 posts - 1,216 through 1,230 (of 5,841 total)