K2 Base Camp

Entries categorized as ‘SQL Server 2000’

Shrinking SQL 2000, 2005 Databases

April 7, 2009 · Leave a Comment

 

If you ever run in a situation like you have only MBs of space left on production SQL servers and your transaction logs are growing bigger and bigger and you want to claim disk space immediately then you might need to run following command

Backup log <Database name> with no_log

This command is not recommended to run in normal circumstances and after this you are not able to recover your database point in time. if you have proper backups configured then you don’t need to run this command because after each full backup the transaction logs are automatically truncated. Also in case you have log shipping configured then this command will break your log shipping sequences. Only use if you don’t have any space left on physical disk and you don’t have any other alternatives available.

if you don’t required point in time recovery then change your database recovery model to ‘Simple’ doing this will ensure that your transaction log will not get bigger.

The above command will not reclaim disk space, you have to run DBCC shrink statement or go to the SQL management studio and manually shrink log file.

Categories: SQL Server 2000 · SQL Server 2005

Microsoft SQL Server 2000 Scalability Project – Server Consolidation

December 21, 2006 · Leave a Comment

Following link contains the description of the test which Microsoft has conducted for finding out the optimized SQL server 2000 configuration for more then 500 databases hosted in ASP (application service provider) environment. Interested part is the architecture of PACE a financial software from Microsoft bCentral™ for medium business which create a new database for every customer. Which according to Microsoft is not a traditional application architecture and advocating that this architecture is suitable for maximize data security check it out

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsql2k/html/sql_asphosting.asp

Categories: Application Architecture · SQL Server 2000 · System Architecture

SQL 2005 – Max Worker threads enhancement

December 20, 2006 · Leave a Comment

One of the great enhancement in SQL 2005 is its automatic worker threads adjustment. In SQL 2000 it is by default adjust to 255. Increment in this figure without proper testing will always result in degradation of SQL performance. A fresh installation of SQL 2005 initates it by 0 and adjust it according to system load and usage. One thing to remember that in case of upgrading, SQL 2005 will get the max work thread number from previous version which have to reinitialize to 0 for better performance.

Categories: SQL Server 2000 · SQL Server 2005

SQL server common Q/A

December 19, 2006 · Leave a Comment

Categories: SQL Server 2000

Normalization techniques

December 19, 2006 · Leave a Comment

Categories: SQL Server 2000

Maximizing .Net performance

December 19, 2006 · Leave a Comment

Categories: SQL Server 2000

SQL Server 2000 Performance Tunning

December 19, 2006 · Leave a Comment

found some good SQL Server Performance Tuning Tips following is the link

http://www.sql-server-performance.com/misc_tips.asp

Also an book excerpt

http://www.sql-server-performance.com/book_excerpts/4215_Ch01_FINAL.pdf

Categories: SQL Server 2000

SQL Server DBCC commands

December 19, 2006 · Leave a Comment

found some very useful SQL Server DBCC Commands , these commands will help in optimizing and maintaining SQL server 2000 following is the link

http://www.sql-server-performance.com/dbcc_commands.asp

Categories: SQL Server 2000