Forum Replies Created

Viewing 15 posts - 766 through 780 (of 1,219 total)

  • RE: query to find total number of total number of reads for a stored procedure

    How could I forget! The solution curious_sqldba is looking for is available on my web site. sp_sqltrace accepts a T-SQL batch as parameter. It sets up a trace filtered for...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: "cpu drift" possibly causing 15 second IO messages in log?

    Indianrock (8/23/2013)


    I suspect the daytime average write wait on tempdb is very low, but the average is driven very high by doing update statistics on tables with over 150 million...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Log for login privileges

    Yes, there are a number of ways you can audit this:

    1) SQL Server Audit (which requires Enterprise Edition)

    2) DDL triggers.

    3) Event notifications.

    If you mean how you could find out after-the-fact...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Query Help

    Can you explain the business rules for which CourseID in #CurrrentSchedule with which CourseID in #LastYearMark?

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Sync tables

    Change tracking?

    ADO Sync Framework?

    Merge replication?

    BULK INSERT?

    SSIS?

    Triggers?

    Service Broker?

    There are plenty of options, but which is the best depends on your situation - which we know nothing about.

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: OFFSET and FETCH NEXT, inconsistent execution plan

    Eugene-928407 (5/25/2012)


    The odd thing is that the 1st query runs much slower. According to the execution plan it's relative cost is 96% compared to 4%.

    It is not surprising that the...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Massive Merge

    TheSQLGuru (8/22/2013)


    2) use explicit transaction control

    3) use error handling to rollback and exit and stop looping if error occurs

    Note that you cannot wrap the whole thing into a single transaction,...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Unexplained Performance Observation

    TheSQLGuru (8/22/2013)


    3) You are very likely NOT getting in-place updates on your first update. Both fields are NULLABLE and as such when you give them a value for that...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: files ndf

    HanShi (8/23/2013)


    Specific for the more write intensive filegroups the performance will benefit with 4 datafiles vs. 1 datafile. With 4 datafiles the I/O will be spread over all datafiles (when...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: "cpu drift" possibly causing 15 second IO messages in log?

    Indianrock (8/22/2013)


    Since we have NEVER seen database corruption from these "15-second" messages, it is mainly something upper management gets in a tizzy about. 15 seconds? ...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: SQL server agent doesnt start

    Please post the output from "SELECT @@version".

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Place system and data files on the salme disk

    My preference is to have tempdb on a separate disk, as there can be some quite heavy action in tempdb. If master, model and msdb are on the same disk...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: Backup to another network server

    It is not about what you are logged in as! It is what SQL Server is logged in as!

    Open SQL Server Configuration Manager, find the service, select Properties, check...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: trying to match up two tables

    The correct approach is to model your data correctly and enforce primary keys. It seems that you have a lot of duplicate rows. DISTINCT is only a band-aid to fix...

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

  • RE: trying to match up two tables

    And how many rows are there in the other table?

    [font="Times New Roman"]Erland Sommarskog, SQL Server MVP, www.sommarskog.se[/font]

Viewing 15 posts - 766 through 780 (of 1,219 total)