I just noticed that the log files in EM are not rolling on a regular schedule. I don't know how to change this, but I would prefer them to cycle daily, or weekly. How?
I just noticed that the log files in EM are not rolling on a regular schedule. I don't know how to change this, but I would prefer them to cycle daily, or weekly. How?
You mean the errorlog files? If so it only cycles on SQL Server startup. Check out sp_cycle_errorlog (which you can schedule of you wish). -- Tibor Karaszi, SQL Server MVP http://www.**--****.com/ http://www.**--****.com/
Yup, that was it. My problem was that the current log file was about 500 MB (covering about 7 months) and pulling it from my workstation caused some issues. I suspect mostly from the source server, which is under powered, has a lousy network connection and slow and fragmented drives. So, what is a reasonable time frame for an error log? If you're on top of the system, I think once a day, perhaps once a week. No less often than once a month though. Opinions? "Tibor Karaszi" < XXXX@XXXXX.COM > wrote in
> So, what is a reasonable time frame for an error log? The usual: It depends. :-) First, you can configure number of history files. Through GUI in EM's 2000. I'm not sure whether SSMS exposes this, but I bet you can find it in the registry. If you re-cycle frequently, you probably want to have more old files. Or, you can add up the smartness by each time you cycle, you take the errorlog.1 file and zip it into and archive (it zips really well since it is text). And, if you are really ambitious, do some search (grep(?) or whatever utilities there might be) to remove stuff you know you aren't interested in, before you zip it. Also, since you are concerned with size, why not add a condition for the cycle based on file size? And in SQL Server 2000, you can control to some extent whether some system messages are written to eventlog/errorlog in the first place. See sp_altermessage and the dlevel column in sysmessages. So, there's much you can do. One thing I do recommend, is to keep a reasonable amount of history for these. For instance, the first time a corruption is encountered, SQL Server writes information. Say it takes a few days before you discover this (you are on vacation), then you definitely want these entries available. And you probably want to back-track to see if there are older things that can possibly be the root cause. -- Tibor Karaszi, SQL Server MVP http://www.**--****.com/ http://www.**--****.com/
So if you schedule the log file rollover to happen once a month, you shouldn't have to do anything, since SQL Server will keep more than enough to meet your 6-month threshold. However, there is a scenario you may have to pay attention to: manual / unplanned restarts. Say you apply windows updates and/or SQL SPs during a maintenance window and restart the service and/or reboot the box multiple times, now you just lost a good portion of your archive. So, you may want to have a separate windows scheduled task that archives the files once a week and deletes any archives > 6 months old (or whatever your desired range).
1.Change logfile location durring setup SQL 2000
Is there a possibility to change the default instalation directory for the logfiles for sql server 2000? I would like the default database files to be placed on teh d: drive and the logfiles on the e: drive? Sjaak van Esdonk
2.Cannot truncate logfile in SQL server 2000
Nilkanth Desai XXXX@XXXXX.COM I am using SQL Server 2000. In this case database size is 750 MB and since last 10 days its logfile is constantly increasing its size. Since last 2 days it has crossed 14GB. Thses logfiles are having extension of .ldf. I have tried shrink database option from Enterprise manager and used DBCC from query analyser. But this logfile did not truncated. Can anyone tell me solution for this problem.
3.Missing steps when opening a SQL 7 package in SQL 2000 EM
Hi, I am trying to make a working SQL 7 DTS export package for exporting data to ms access, to be run on macines using MSDE 1.0. In the VB program that I have developed, it looks like if some steps are missing, which causes errors when executing the package. I decided to open the SQL 7 package on my SQL 2000 machine.... and I don't see any create steps in the package.. only copy steps! What could be wrong, or what I am doing wrong? Hope, that someone can help me.. Hugo
4.Commands SQL Server 2000 EM to SQL Server 2005 SSMS
Is there a white paper, website link, or paper that can show me how to complete every task that you complete with SQL Server 2000 Enterprise Manager the same task with SQL Server 2005 SSMS? (Security,Backup,Maintenance,etc.) Or the tasks that you completed with SQL Server 2005 SSMS that correspond to SQL Server 2000 EM. Please help me complete this task. Thanks,
5.SQL Server 2000 EM Register SQL Server W/O GUI
Is there away to register SQL Sever 2000 database server with or without the Enterprise Manager GUI with a different Windows user account? I would like to register approximately 20 servers from a single server but I do not have all the sa passwords for the servers. But I do have the different windows user accounts to the servers. Please help me with this task.
6. SQL 2000 EM Fails in Windows XP
7. Please HELP: SQL 2000 SP3a & EM: Can't register a Server
8. EM crashes on open DTS package for Design - No error - SQL 2000
Users browsing this forum: No registered users and 35 guest