Forum Replies Created

Viewing 15 posts - 31 through 45 (of 131 total)

  • Reply To: Statistics Update Frequency

    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. ...

  • Reply To: Order By Slowness

    Jeff Moden wrote:

    Jackie Lowery wrote:

    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...

  • Reply To: Order By Slowness

    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...

  • Reply To: Order By Slowness

    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...

  • Reply To: Order By Slowness

    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...

  • Reply To: Order By Slowness

    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...

  • Reply To: Order By Slowness

    Oddly enough, rebuilding the indexes on the wspkg and wspkglin tables fixed the issue.

  • Reply To: Large difference in Actual rows vs Estimated rows

    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...

  • Reply To: Large difference in Actual rows vs Estimated rows

    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...

  • Reply To: Large difference in Actual rows vs Estimated rows

    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?

  • Reply To: Large difference in Actual rows vs Estimated rows

    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.

     

    Attachments:
    You must be logged in to view attached files.
  • Reply To: SQL Backup and Restore

    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...

  • Reply To: Script multiple queries

    Like a visual studio code store?

  • Reply To: Open EDI file in SQL Server

    Also. If your parsing EDI docs for an ERP you should look for an EDI system that already has templates built to import the data in the format your ERP...

  • Reply To: Open EDI file in SQL Server

    I do EDI for work. You should look for a solution that can parse the docs for you. We use datamasons. Trying to build a solution to parse all of...

Viewing 15 posts - 31 through 45 (of 131 total)