Viewing 15 posts - 31 through 45 (of 133 total)
Thanks guys. The coalesce solution is what I needed. Phils solution would work, except I want to return an empty string if there's less than 2 characters.
June 28, 2021 at 3:04 pm
I guess i should say the goal here is to do a :
left(column1,len(column1)-2)
and I'm trying to account for Null or Empty fields so the left function doesn't...
June 28, 2021 at 2:11 pm
I didn't know of the new persisting sample percent feature. Thanks for that info. I found a query that shows the date statistics were updated and days since last update. ...
March 19, 2021 at 2:32 pm
I may not have had to rebuild them, but doing a full sample on the statistics definitely fixed the slowness.
Should I have to do a full sample on...
December 10, 2020 at 1:27 pm
I may not have had to rebuild them, but doing a full sample on the statistics definitely fixed the slowness.
Should I have to do a full sample on the statistics...
December 8, 2020 at 2:34 am
I found that i can add:
@StatisticsSample = 100 ,
to the script. I run this script on Fridays at 10PM. Is there any reason I shouldn't set the...
December 7, 2020 at 10:50 pm
I finally found what i was doing that had sped up the query. I rebuilt the index manually. Normally, my indexing is done by Ola Hallengren's maintenance scripts, but it...
December 7, 2020 at 10:35 pm
Now I'm really confused. The problem seems to have come back. It's taking 4 to 5 seconds again. If I remove the TOP 1 part it returns 32 rows. When...
December 7, 2020 at 9:19 pm
Oddly enough, rebuilding the indexes on the wspkg and wspkglin tables fixed the issue.
December 7, 2020 at 8:41 pm
If the value passed matches the histogram for 66,000 rows, wouldn't the estimate be high not low. Again, I'm stupid on this, so sorry if I'm not asking the wrong...
July 9, 2020 at 8:48 pm
Again. Thanks for the help. I don't understand why the estimate is so low. There's a big difference between 1200 rows and 66,000 rows. It causes a problem when displaying...
July 9, 2020 at 7:28 pm
I did a statistics up date with FULLSCAN, so the statistics should be good. Can you elaborate on recompiling or picking a different plan for the lower row counts?
July 9, 2020 at 6:07 pm
These are the queries i ran. Is this correct?
SELECT ddsp.last_updated
FROM sys.dm_db_stats_properties(OBJECT_ID('dbo.gbkmut'), 19) AS ddsp;
SELECT *
FROM sys.dm_db_stats_histogram(OBJECT_ID('dbo.gbkmut'), 19) AS ddsh;
The stats last updated: 2020-07-08 15:58:45.7233333
Histogram is attached.
July 9, 2020 at 3:35 pm
Thanks for in info. That helps greatly. Which system databases can i restore? I would assume i can't restore the 2012 system databases to the 2016 server. Is there any...
February 18, 2020 at 2:56 pm
Viewing 15 posts - 31 through 45 (of 133 total)