Forum Replies Created

Viewing 15 posts - 3,796 through 3,810 (of 5,841 total)

  • RE: Measuring cursor performance for a massive query

    Gianluca Sartori (11/4/2010)


    Thank you!

    It's strange, indeed. STATIC cursors have to make a tempdb copy of the data, I would expect this to take some time and lose compared to KEYSET....

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

  • RE: Nonclustered Index on Temp Table

    sjimmo (11/4/2010)


    SQLGuru

    That is exactly the issue that most of my clients THINK is true, yet almost always is not. You have to scan the big temp table (tempdb read) then...

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

  • RE: Measuring cursor performance for a massive query

    http://sqlblog.com/blogs/hugo_kornelis/archive/2007/11/21/curious-cursor-optimization-options.aspx

    Note how Adam Machanic states that CLR cursors are even faster. 😀

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

  • RE: Nonclustered Index on Temp Table

    >>I have seen cases where there are multiple indexes on multiple temp tables but these have many rows and are being joined upon with permanent tables. This would reduce table...

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

  • RE: Nonclustered Index on Temp Table

    I am going to step outside the box here and ask WHY you want to put a nonclustered index on a temp table?? In almost 15 years of doing...

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

  • RE: UDF in UPDATE affect performance ???

    Performance will likely be horrible here. You simply MUST refactor the code to inline the UDFs into the update itself. Even if you need to use interim temp...

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

  • RE: Measuring cursor performance for a massive query

    Despite what others have said, precleaning the data is not necessarily a workable solution for some cases. If you need a cursor to trap and log individual errors and...

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

  • RE: Selective Index Maintenance

    ola.hallengren.com!! Full maintenance suite, highly configurable and documented! Best of all it is FREE!

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

  • RE: restrict log file size -sql server 2005

    I hope you are aware that if you restrict the log size, and you fill it up, then all DML activity will cease against the database.

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

  • RE: How to find the reason of the ldf growth?

    homebrew01 (11/3/2010)


    I don't know of a way after the fact unless you had a trace running ....

    I run transaction log backups every 15 min, so I look at when...

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

  • RE: SQL 2008 Performance Issue - CPU

    1) Forums, 'staffed' by volunteers, are for short, relatively straight-forward help and advice scenarios. What you have posted could take hours or even days to really get things tweaked...

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

  • RE: SQL Log File Viewer Q - Does it Sometimes Drop Records

    If you want to do stuff properly and reliably with the tlog, get a copy of ApexSQL's log tool(s).

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

  • RE: Question about job scheduling

    I hope you understand that if your job takes > 20 minutes to complete you will skip any 'overlapped' executions of the job.

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

  • RE: Log file grows very big after running a job

    Stop using maintenance plans. PLEASE do yourself a HUGE favor and get a copy of Ola Hallengren's FREE and DOCUMENTED maintenance suite (ola.hallengren.com). Learn to use it's goodness....

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

  • RE: A Faster BETWEEN Dates

    1) the fact that table variables are used in the demos is likely creating execution plans that will not play out in the real world where actual tables are used....

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

Viewing 15 posts - 3,796 through 3,810 (of 5,841 total)