Forum Replies Created

Viewing 15 posts - 256 through 270 (of 518 total)

  • RE: Audit database usage

    Why can't you save the results to a table, out of curiosity?

    Would saving it to a file be a better option?

    Literally your only option here is to run a profiler...

  • RE: New Install SQL 2008 R2

    Did you already configure the distributor as a distributor?

    I.e. connect to the server, right click Replication, and go to Configure Distribution?

  • RE: Full backup every hour

    marc 96091 (10/4/2010)


    Thanks for the replies Gents!

    So I'll switch to Full recovery and just do nightly Full backups.

    Then I'll do T Log backups every 15 mins....why not do Diff backups...

  • RE: Dynamic Query Problem using LIKE

    Ok, did some more research/testing and I see an issue now.

    Out of curiosity..you set the phone number as:

    SET @Phone = @Phone +...

  • RE: Full backup every hour

    Seems like a waste in my opinion..that's still 800MB worth of IO every hour. I would bring it to full, do full backups every night, and a trans log backup...

  • RE: Dynamic Query Problem using LIKE

    You are using the same exact variable names at the very end of the sp_executesql..Gail's article used a different set (prefixed with _)

    Try replacing your executesql statement with this:

    ...

  • RE: Dynamic Query Problem using LIKE

    Out of curiosity (unless I missed it)..what error are you getting?

  • RE: How to Speed up this UPDATE query

    The true CTE way would be like this:

    WITH CTE

    AS (SELECT woper

    ...

  • RE: How to Speed up this UPDATE query

    The issue is you're updating every row in the table by using a subquery within a subquery..causing a huge number of reads.

    You should consider rewriting it to use inner joins...

  • RE: Dynamic Query Problem using LIKE

    If you're setting up a dynamic query, you might as well just replace the variables with the static values anyway. I also thought sp_exec or executesql ran in its own...

  • RE: Performance Tuning

    Converting the date like that is automatically an index/table scan, so I'm sure that piece is hurting performance. Convert your input to match your static data, not the other way...

  • RE: Talk about a big herrm "mishap"

    Ninja's_RGR'us (10/1/2010)


    Hmm interesting info here.

    Got any scripts that finds those indexes or is it just based on filtering on index names?

    Yep..there's actually a field for it:

    select object_name(object_id) as [Table],Name as...

  • RE: Shrinking the MSDB logs

    There's really no reason to set MSDB to full. I'm not even sure if you can, actually. Anyway I was just verifying to make sure it was set to simple.

    Run...

  • RE: Talk about a big herrm "mishap"

    Grant Fritchey (10/1/2010)


    I really hate the DTA. Piece of Marketing if you ask me.

    Agreed..manually cleaning out all the hypothetical indexes it creates and never cleans up is also a bucket...

  • RE: Shrinking the MSDB logs

    Is your MSDB on Full recovery or something? I've never seen an MSDB log that large.

    Also run dbcc opentran on it to see if there's an open transaction causing it...

Viewing 15 posts - 256 through 270 (of 518 total)