Forum Replies Created

Viewing 15 posts - 76 through 90 (of 1,518 total)

  • RE: when store procedure recompiled last time

    GilaMonster (7/18/2012)


    Cross apply to sys,dm_exec_sql_text

    This won't work if the sproc has the "WITH RECOMPILE" option in its definition.

    Running the following on such a proc gives me nothing:

    SELECT deqs.creation_time, dest.text

    FROM sys.dm_exec_query_stats...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Server becomes very slow [RESOURCE_SEMAPHORE] waittype.

    andyansryan (9/19/2012)


    We had the same issue. Initially we did not think it was memory bottlenecks since cache hit ratio was around 100. But we increased the server memory and the...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Would a smaller number of VLFs in the log speed up the redo phase of recovery of a mirror snapshot?

    GilaMonster (9/10/2012)


    Marios Philippopoulos (9/10/2012)


    Once I switch the db to single-user mode and take a log backup, there should be no active-log portion in any of the files.

    There is always an...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Would a smaller number of VLFs in the log speed up the redo phase of recovery of a mirror snapshot?

    GilaMonster (9/10/2012)


    TruncateOnly is not a valid shrink option when shrinking the log. It's ignored. It's valid for data files only.

    The rest sounds fine, just note that you won't necessarily be...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Would a smaller number of VLFs in the log speed up the redo phase of recovery of a mirror snapshot?

    GilaMonster (9/9/2012)


    Perhaps. Depends just how many VLFs you're talking about.

    You've read Kimberly Tripp's blog post on transaction log throughput?

    I have:

    http://www.sqlskills.com/blogs/kimberly/post/8-Steps-to-better-Transaction-Log-throughput.aspx

    Running "dbcc loginfo" on the database gives me 3,155 records (VLFs).

    I...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Real-Time Tracking of Tempdb Utilization Through Reporting Services

    Fraggle-805517 (9/6/2012)


    General question on this really old post. Has anyone updated this to use 2012 yet? I have it on my 2005 system, but we just upgraded to...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Would a smaller number of VLFs in the log speed up the redo phase of recovery of a mirror snapshot?

    GilaMonster (8/27/2012)


    Let's put it this way, lots and lots of VLFs will slow the redo down.

    Could the number of VLFs also be a contributing factor to poor mirroring performance, such...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Standby-file location in log-shipping

    Perry Whittle (9/5/2012)


    Marios Philippopoulos (9/5/2012)


    I had initialized it previously using a manual "RESTORE DATABASE ... WITH STANDBY ..." command.

    Is that why it is not showing up?

    So what path\filename did you...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Standby-file location in log-shipping

    Perry Whittle (9/4/2012)


    Marios Philippopoulos (9/4/2012)


    Perry Whittle (9/4/2012)


    the column is called 'backup_destination_directory'

    That location contains the log backups copied to the standby from the principal. There is no standby file there.

    yes it...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Standby-file location in log-shipping

    Perry Whittle (9/4/2012)


    the column is called 'backup_destination_directory'

    That location contains the log backups copied to the standby from the principal. There is no standby file there.

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Standby-file location in log-shipping

    Perry Whittle (9/4/2012)


    Usually its set to the secondary destination directory which you can get from the following

    exec sp_help_log_shipping_secondary_database 'yourdb'

    Thanks, I tried that but did not see the information displayed in...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Space used by Temp table

    SQL Kiwi (8/22/2012)


    Marios Philippopoulos (9/11/2011)


    Dropping the temp table explicitly at the end of a batch is considered good programming practice.

    Certainly best practice for ad-hoc batches, but I would say it...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Turbocharge Your Database Maintenance With Service Broker: Part 1

    Wandrag (7/23/2012)


    Hi,

    Thanks for this article!

    I've changed some of our maintenance plans using SB.

    Question: How can I limit ONLY the SB queries to use MaxDop=1?

    I don't want to make this server...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Mirroring restore rate very low (< 5 MB/sec) - database mirror stuck in "synchronizing" state for several hrs

    Could the slow restore rate be caused by high file fragmentation on the mirror server?

    Perhaps we are due for a file defrag outage.

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

  • RE: Mirroring restore rate very low (< 5 MB/sec) - database mirror stuck in "synchronizing" state for several hrs

    Robert Davis (7/18/2012)


    No I meant stop/start the mirroring endpoints. Use an Alter Endpoint caommand and do it on both partners.

    Thanks for clarifying, now I know what you mean; will try...

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]

Viewing 15 posts - 76 through 90 (of 1,518 total)