I have 2 database questions, (1) How often do we need to truncate the transaction log in the database? or what size I need to keep? Our transcation log file is growing too big and wonder what size I need to keep? (2) Is there any risk to rebuild the index from LID? Will it cause the database fail or something else? Any input will be much appreciated. Thanks!
1) You really shouldn't truncate your transaction log. That will cause you performance problems when the log has to grow again. If you are running SQL Server and your Recovery Model is full, you need to backup your transaction log. If you don't backup your transaction log it will continue to grow until it fills up all your disk space. If you are backing up your transaction log and it is still growing, you might want to it up more often. We backup our transaction log every hour. The size of your transaction log will depend on your environment and how often you back it up. 2) There shouldn't be any risk with rebuilding Indexes through LID. We rebuild our indexes on a bi-weekly basis, but do it through the database.
DBCC
Sorry, that didn't paste correctly. DBCC SQLPERF(LOGSPACE)