Forum Replies Created

Viewing 15 posts - 1,666 through 1,680 (of 5,841 total)

  • RE: Possible sources of fragmentation on Clustered Index

    Books Online is your friend. start with sp_trace_create, it links to the others. My profiler trace is text, cpu, duration, reads, writes, rowcount, starttime, databaseid, spid. That's...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Possible sources of fragmentation on Clustered Index

    Profiler will be better mechanism to capture the tsql that is causing DML on the table I think. See my earlier post.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: I need help with a query to count how many sessions are active and remain active per hour.

    That's quite interesting Dwain! I will have to set aside some time to break it down, and also modify it to work with the typical "UserID did something" scenarios...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Re-Indexed with the Wrong Fill Factor and Now All Databases Are Huge

    Michael has good advice. I will amend it with a removal of the 90% fill factor recommendation. Many indexes in SQL Server can and should be 100% FF...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Login transfer in logshipping

    Try this:

    SELECT

    'create login [' + p.name + '] ' +

    case when p.type in('U','G') then 'from windows ' else '' end +

    'with '...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Database Fragmentation Question

    Ronnie Jones (1/23/2015)


    Thank you guys for your reply!

    So, you're saying that I shouldn't worry about the avg_fragmentation_in_percent number in my result set? I'm trying to setup routine maintenance and just...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Possible sources of fragmentation on Clustered Index

    The only reasonable explanation seems to be updates. Set up a tight trace to disk filtering on just the name of the table maybe to catch what is going...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Database Fragmentation Question

    I personally think 50K pages is a bit high, but agree with the principal that you should ignore small tables.

    And you should definitely switch to Ola.hallengren.com's stuff for doing all...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Write a loop on result of first query inside a Stored Procedure

    girish.nehte-1109699 (1/23/2015)


    Hi All,

    I am having a limited knowledge in SQL. Let me explain my scenario in detail. I have to write a Stired Procedure with the following functionality.

    Write a simple...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL Server 2012 - Hanging

    I concur. Plan change is good possibility. Another is blocking. Use sp_whoisactive to find that. That free tool can also show you a LOT about the...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL Log Shipping Not working

    Maybe it is just your efforts to anonymize the name, but you are missing a backslash in the file name? 'E:xxxxxxxx.trn'

    Outside of that try running a profiler...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: compress existing backup file?

    ericb1 (1/22/2015)


    Ok, thanks, is there a way to use windows (2012r2) to do it with a command-line? Just trying to automate it without having to install extra software on...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Performance Analysis SQL Server 2012

    Hire a good consultant to do the performance review for you and learn from them and their findings document.

    Failing that, there are a baJILLION things you could pursue....

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Optimizing Stored Procedure to go Parallel.

    pkapas (1/22/2015)


    Haha, well that's a + for Microsoft then. A good product starts with making sure it can adapt to even inexperienced users. I'm planning on getting better with SQL...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: compress existing backup file?

    Windows has built-in ability to compress files. 7-z or others may have command line ability too.

    You could stop using Comm Vault. Also, are you 100% certain it cannot...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 1,666 through 1,680 (of 5,841 total)