Viewing 15 posts - 3,796 through 3,810 (of 5,841 total)
Gianluca Sartori (11/4/2010)
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
November 4, 2010 at 10:10 am
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
November 4, 2010 at 10:08 am
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
November 4, 2010 at 9:10 am
>>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
November 4, 2010 at 8:50 am
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
November 4, 2010 at 8:28 am
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
November 4, 2010 at 8:24 am
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
November 4, 2010 at 8:22 am
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
November 4, 2010 at 8:19 am
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
November 4, 2010 at 8:18 am
homebrew01 (11/3/2010)
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
November 4, 2010 at 8:17 am
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
November 2, 2010 at 9:11 am
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
November 2, 2010 at 8:56 am
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
November 2, 2010 at 8:56 am
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
November 2, 2010 at 8:55 am
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
November 1, 2010 at 8:01 am
Viewing 15 posts - 3,796 through 3,810 (of 5,841 total)