I am a beginner with SQL, so need any tips that can help me manage databases.
I have a database which is currently about 2.6GB in size, with almost same amount of log file-on a 8GB partition. I had a problem with the log-file size growth and so i 'detached' the db, moved the log file to other partition, 're-attached' the db pointing to the new location of the log, and it worked.
But the database is growing too fast. Worried about this, i went to database-size settings and made the "Allowable size" of database to 5GB - not aware how to reduce it(if needed). To my unpleasant surprise, all the 5GB space shows as occupied now, though the database is abt 2.6GB as of now!!
I read somewhere that backing-up the transaction log file will reduce its file-size to zero and start logging entries again, so i now have a backup of transaction log-which is also ~5GB. The log file did start from zero and its working ok.
My concerns are,
1) How long should i keep the backed-up copy of that log file? And is it really needed at all?
2) Is it possible to reduce the allocated file-sizes of the database data file and that of its transaction file?
3) The database is creating a backup on its own every morning 6am, which is in the same 8GB partition as that 5GB database is; so i have to always move this backup in the morning while i start using the database - to leave sufficient free space for its working. I dont want this automatic backup, i can manage with manual backups. How to stop this?
4)This SQL2000 is on a Win2000 Server, with a hardware RAID5 configuration spread over 3SCSI hard-disks of 18GB each, with partitions of 8GBs. Can this affect the SQL performance since i have database on one partition & its log on other??
All tips and suggestions are highle appreciated, Thanks.
Ash
I have a database which is currently about 2.6GB in size, with almost same amount of log file-on a 8GB partition. I had a problem with the log-file size growth and so i 'detached' the db, moved the log file to other partition, 're-attached' the db pointing to the new location of the log, and it worked.
But the database is growing too fast. Worried about this, i went to database-size settings and made the "Allowable size" of database to 5GB - not aware how to reduce it(if needed). To my unpleasant surprise, all the 5GB space shows as occupied now, though the database is abt 2.6GB as of now!!
I read somewhere that backing-up the transaction log file will reduce its file-size to zero and start logging entries again, so i now have a backup of transaction log-which is also ~5GB. The log file did start from zero and its working ok.
My concerns are,
1) How long should i keep the backed-up copy of that log file? And is it really needed at all?
2) Is it possible to reduce the allocated file-sizes of the database data file and that of its transaction file?
3) The database is creating a backup on its own every morning 6am, which is in the same 8GB partition as that 5GB database is; so i have to always move this backup in the morning while i start using the database - to leave sufficient free space for its working. I dont want this automatic backup, i can manage with manual backups. How to stop this?
4)This SQL2000 is on a Win2000 Server, with a hardware RAID5 configuration spread over 3SCSI hard-disks of 18GB each, with partitions of 8GBs. Can this affect the SQL performance since i have database on one partition & its log on other??
All tips and suggestions are highle appreciated, Thanks.
Ash