The current time is

Monday, March 23, 2009

Shrinking the "Unshrinkable" SQL Transaction Log

I've found this "catch" in some blog and thought that I must share it with more people who may have the same problem :)))

Here it goes...

"

Various reasons may cause SQL Server to get in a rut and not empty the transaction log of a database. In my case, our database backups were failing without our knowledge for several weeks, so the backups were never successful, and the transaction logs of a few databases grew so large that the backup process would still not clear out the transaction log. In one case, we had a 187MB database with a 37GB transaction log!

The insanity had to stop! A handful of databases like this would put us over the top on that particular server's hard drive storage.

The SQL Server GUI for shrinking the database rendered no effect, and even using the DBCC SHRINKFILE command was not working.

The key, as explained by Pinal Dave, is to run the SHRINKFILE command twice,with an explicit backup log truncation in between both runs. This code here will get you up and running:

SQL:
  1. DBCC SHRINKFILE("MyDatabase_Log"1)
  2. BACKUP LOG MyDatabase WITH TRUNCATE_ONLY
  3. DBCC SHRINKFILE("MyDatabase_Log"1)

This freed up dozens of gigabytes on our server.

"

Sunday, March 22, 2009

"Unable to load client print control" bug is finally fixed !!!

I finally got this annoying “Printing” error fixed and out of my wayyyy... Yaaaaaaaaaay... So, find the steps here below :)))
First, you have to install the MS Security patch 956391 on all the client machines. They normally would get installed if these machines are running the "Windows Updates"...
Secondly, you should install SQL server Service Pack 3 on Reporting Services 2005: You can find the installation files at this link: http://www.microsoft.com/downloads/details.aspx?FamilyID=ae7387c3-348c-4faa-8ae5-949fdfbe59c4&DisplayLang=en
Finally, you should install Microsoft Report Viewer Redistributable 2005 Service Pack 1 on the Share Point machines. You can find the installation files at this link: http://www.microsoft.com/downloads/details.aspx?familyid=82833F27-081D-4B72-83EF-2836360A904D&displaylang=en

Now, sit back and enjoy printing all your reports :))))))