Showing posts with label logs. Show all posts
Showing posts with label logs. Show all posts

Friday, March 30, 2012

Manage size of error log

How do I manage the size of Sql Server's error log? I am not referring to th
e
transaction logs for each database. It is the log that stores successful and
unsuccessful logins (among other things). In Enterprise Manager, it is under
"Management", "logs". This file keeps growing by around 10 Mb each day. When
I click on it from Enterprise Manager, it takes 20 minutes or logner to load
and is getting longer each day. I then export this list to find out who has
successfully logged in in the last week. I can't find any place to limit its
growth. Or, is there a better way of getting a table of successful logins?
Thanks in advance!Brad,
The file is recreated each time the SQL Server service is restarted. You
can control the size of the log by periodically running the
sp_cycle_errorlog (see BOL) system stored procedure.
HTH
J
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
> Thanks in advance!|||"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
Do not keep it from growing, just look at it as a text file, at
\\server\drive$\mssql\log\errorlog. If log grows big, EM is not the tool to
look at it.
Or take a look at "Configure SQL Server Error Logs" in BOL.
Regards
Wojtek|||Hi,
Please do not open the error log from Enterprise manager -- management if
the file is huge. It takes lots of resources and it is not a good practice
if your
file is bigger.
Best method is connect to your server and use the WINDOWS explorer and go to
SQL Server program groups / Logs folder. Errorlog with out a number
will be the latest file.
Incase if you need to open the file using enterprise manager then schedule a
job with system procedure sp_cycle_errorlog
2 to 3 times a day to recyle the error log using sql agent jobs. This will
ensure that error log file size is limted. In this case you can open the
file using
enterprise manager.
Thanks
Hari
SQL Server MVP
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
> Thanks in advance!|||All the other respondents are correct; however, you can modify the NUMBER of
Error Log files that are kept before they are recycled. In SQL EM,
right-click on the SQL Logs folder and choose properties. You will see that
the default is grayed-out but is for 6 files. You can check the box and
then choose the number you'd like to keep the history for.
We usually only audit Failures as Successes can chew up quite a bit of space
on a busy server. Also, not only are the successes logged in the SQL Server
Error log but also the server's Application Event Log.
Finally, I usually use the xp_readerrorlog extended stored procedure. No
parameter gives you the current log. An integer value gives you the file
with the same extention: 1 for Errorlog.1, 2 for Errorlog.2, etc.
Sincerely,
Anthony Thomas
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
How do I manage the size of Sql Server's error log? I am not referring to
the
transaction logs for each database. It is the log that stores successful and
unsuccessful logins (among other things). In Enterprise Manager, it is under
"Management", "logs". This file keeps growing by around 10 Mb each day. When
I click on it from Enterprise Manager, it takes 20 minutes or logner to load
and is getting longer each day. I then export this list to find out who has
successfully logged in in the last week. I can't find any place to limit its
growth. Or, is there a better way of getting a table of successful logins?
Thanks in advance!

Manage size of error log

How do I manage the size of Sql Server's error log? I am not referring to the
transaction logs for each database. It is the log that stores successful and
unsuccessful logins (among other things). In Enterprise Manager, it is under
"Management", "logs". This file keeps growing by around 10 Mb each day. When
I click on it from Enterprise Manager, it takes 20 minutes or logner to load
and is getting longer each day. I then export this list to find out who has
successfully logged in in the last week. I can't find any place to limit its
growth. Or, is there a better way of getting a table of successful logins?
Thanks in advance!Brad,
The file is recreated each time the SQL Server service is restarted. You
can control the size of the log by periodically running the
sp_cycle_errorlog (see BOL) system stored procedure.
HTH
J
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
> Thanks in advance!|||"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
Do not keep it from growing, just look at it as a text file, at
\\server\drive$\mssql\log\errorlog. If log grows big, EM is not the tool to
look at it.
Or take a look at "Configure SQL Server Error Logs" in BOL.
Regards
Wojtek|||Hi,
Please do not open the error log from Enterprise manager -- management if
the file is huge. It takes lots of resources and it is not a good practice
if your
file is bigger.
Best method is connect to your server and use the WINDOWS explorer and go to
SQL Server program groups / Logs folder. Errorlog with out a number
will be the latest file.
Incase if you need to open the file using enterprise manager then schedule a
job with system procedure sp_cycle_errorlog
2 to 3 times a day to recyle the error log using sql agent jobs. This will
ensure that error log file size is limted. In this case you can open the
file using
enterprise manager.
Thanks
Hari
SQL Server MVP
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
> Thanks in advance!|||All the other respondents are correct; however, you can modify the NUMBER of
Error Log files that are kept before they are recycled. In SQL EM,
right-click on the SQL Logs folder and choose properties. You will see that
the default is grayed-out but is for 6 files. You can check the box and
then choose the number you'd like to keep the history for.
We usually only audit Failures as Successes can chew up quite a bit of space
on a busy server. Also, not only are the successes logged in the SQL Server
Error log but also the server's Application Event Log.
Finally, I usually use the xp_readerrorlog extended stored procedure. No
parameter gives you the current log. An integer value gives you the file
with the same extention: 1 for Errorlog.1, 2 for Errorlog.2, etc.
Sincerely,
Anthony Thomas
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
How do I manage the size of Sql Server's error log? I am not referring to
the
transaction logs for each database. It is the log that stores successful and
unsuccessful logins (among other things). In Enterprise Manager, it is under
"Management", "logs". This file keeps growing by around 10 Mb each day. When
I click on it from Enterprise Manager, it takes 20 minutes or logner to load
and is getting longer each day. I then export this list to find out who has
successfully logged in in the last week. I can't find any place to limit its
growth. Or, is there a better way of getting a table of successful logins?
Thanks in advance!sql

Manage size of error log

How do I manage the size of Sql Server's error log? I am not referring to the
transaction logs for each database. It is the log that stores successful and
unsuccessful logins (among other things). In Enterprise Manager, it is under
"Management", "logs". This file keeps growing by around 10 Mb each day. When
I click on it from Enterprise Manager, it takes 20 minutes or logner to load
and is getting longer each day. I then export this list to find out who has
successfully logged in in the last week. I can't find any place to limit its
growth. Or, is there a better way of getting a table of successful logins?
Thanks in advance!
Brad,
The file is recreated each time the SQL Server service is restarted. You
can control the size of the log by periodically running the
sp_cycle_errorlog (see BOL) system stored procedure.
HTH
J
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
> Thanks in advance!
|||"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
Do not keep it from growing, just look at it as a text file, at
\\server\drive$\mssql\log\errorlog. If log grows big, EM is not the tool to
look at it.
Or take a look at "Configure SQL Server Error Logs" in BOL.
Regards
Wojtek
|||Hi,
Please do not open the error log from Enterprise manager -- management if
the file is huge. It takes lots of resources and it is not a good practice
if your
file is bigger.
Best method is connect to your server and use the WINDOWS explorer and go to
SQL Server program groups / Logs folder. Errorlog with out a number
will be the latest file.
Incase if you need to open the file using enterprise manager then schedule a
job with system procedure sp_cycle_errorlog
2 to 3 times a day to recyle the error log using sql agent jobs. This will
ensure that error log file size is limted. In this case you can open the
file using
enterprise manager.
Thanks
Hari
SQL Server MVP
"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
> How do I manage the size of Sql Server's error log? I am not referring to
> the
> transaction logs for each database. It is the log that stores successful
> and
> unsuccessful logins (among other things). In Enterprise Manager, it is
> under
> "Management", "logs". This file keeps growing by around 10 Mb each day.
> When
> I click on it from Enterprise Manager, it takes 20 minutes or logner to
> load
> and is getting longer each day. I then export this list to find out who
> has
> successfully logged in in the last week. I can't find any place to limit
> its
> growth. Or, is there a better way of getting a table of successful logins?
> Thanks in advance!
|||All the other respondents are correct; however, you can modify the NUMBER of
Error Log files that are kept before they are recycled. In SQL EM,
right-click on the SQL Logs folder and choose properties. You will see that
the default is grayed-out but is for 6 files. You can check the box and
then choose the number you'd like to keep the history for.
We usually only audit Failures as Successes can chew up quite a bit of space
on a busy server. Also, not only are the successes logged in the SQL Server
Error log but also the server's Application Event Log.
Finally, I usually use the xp_readerrorlog extended stored procedure. No
parameter gives you the current log. An integer value gives you the file
with the same extention: 1 for Errorlog.1, 2 for Errorlog.2, etc.
Sincerely,
Anthony Thomas

"Brad Burke Fusion Data" <BradBurkeFusionData@.discussions.microsoft.com>
wrote in message news:9AAC3DC2-7059-4E6F-BCAA-EC25C1203D3F@.microsoft.com...
How do I manage the size of Sql Server's error log? I am not referring to
the
transaction logs for each database. It is the log that stores successful and
unsuccessful logins (among other things). In Enterprise Manager, it is under
"Management", "logs". This file keeps growing by around 10 Mb each day. When
I click on it from Enterprise Manager, it takes 20 minutes or logner to load
and is getting longer each day. I then export this list to find out who has
successfully logged in in the last week. I can't find any place to limit its
growth. Or, is there a better way of getting a table of successful logins?
Thanks in advance!

Wednesday, March 7, 2012

Maintenance utility acting on its own??

Hello

I've set up a maintenance plan for one of the SQL servers in the network I'm administering. When I checked the logs this morning, I was surprised to find that all backups had failed. I was about to throw my computer out the window, when I thought about actually checking the folders where the backup files are supposed to be. I was even more surprised to find that a succesful backup actually had taken place! It seems that this backup had occured about 10 minutes later than the one that failed. When I checked the jobs, they all seemed to have failed (Last Run Status was failed).

How is this possible? Is SQL Server running it's own backups, or is it possible that there's some backup job somewhere that is listed with the jobs for the server?

Any help and suggestions is very welcome.

MNJA lot of things can cause a job to fail, and it may fail partway through so you would see backups for many of your databases (or even all of your databases if it failed on a step after the backup).

Check to see what step you job failed on, and it is good practice to log the output from your backup job. Editing the step(s) that may cause trouble, go to the Advanced tab, and set the Output file location. You can also view previous output from here.

blindman|||Yea, it seems that some of the backups failed because the file sizes were too big, and therefore failed to back up across a network share. I still haven't figured out why those databases have been backed up anyway though, because they're all set to no retries and the log doesn't mention anything about a succesful backup of those DBs.

Now I've decided to do local backups instead.

MNJ|||Originally posted by kilobyte
Yea, it seems that some of the backups failed because the file sizes were too big, and therefore failed to back up across a network share. I still haven't figured out why those databases have been backed up anyway though, because they're all set to no retries and the log doesn't mention anything about a succesful backup of those DBs.

Now I've decided to do local backups instead.

MNJ

I found in my situation that the best thing to do is break out into 4 maint plans. I save them on the local disk and have an automatic delete of them after X number of days.

[list=1]
Get all the system databases in one plan w/ nightly backups. You can just default this one.
Get the critical and rapidly changing application database (the ones using transaction logs) as separate maint plan. The ones you may have to rollback to a point in time.
Get the semi-static databases as a third. Low users or mostly lookup data.
The 4th is for our WebSweeper DB. The thing is huge and we don't have a significant worry if we lose some of the web access info.
[/list=1]

I then depend on the nightly diferentials and weekly fulls to take care of long term recovery and use what is on the local disk for short term. At one point in time I did try to save them to a network location, but I consistently (at least once a week) would lose connectivity to that drive and my b/u were dead.

Another option, is publishing and distribution. If you have another server off-site or can get one with a decent bandwidth connection, you can publish your apps database(s) nightly to the other server. We had (it was only a P200 with 20GB HD and 1GB of RAM :( ) and will soon have again a SQL box at our recovery site that does nothing but tick over and catches the databases nightly. :) That makes life a lot easier from recovery planning.

I have found that most open file agents of b/u software are crap, in my opinion. If you are running out of room on your server's disk, take a look at the plans above. Cut transaction logs for only the most critical and changing databases. And in the maint plans I have described the backups for the critical databases are kept 4 days, but the transaction logs are only kept for 2 days. If need I can always go to tape earlier logs. But most times a major point-in-time restore is going to be less than 48 hours. I know the exception is on a Monday, but how often does it happen? I've had 4 PIT restores in the past 3 years and of those it has generally been to 6AM the current day.

The semi-static databases are kept local for 2 days and then are cycled out. The system databases, I just back up for grins. If the SQL SW crashes that hard, you'll probably just re-install SQL and then reattach your DB's in place. If it was the WinXX software, same thing.

Also when you set up your maint plans, have them do data integrity and DB shrink procedures daily. That will probably buy some disk space.

And sometimes, you just have to tell the boss "We need some more drives for this POS server." :) If he doesn't listen, just smile during the autopsy after the crash, and say "I told you so."|||kilobyte: What do you go by saying that a successful backup actually occurred? A failed backup will leave a backup file on disk that cannot be used for restore operation. Can you try to do a restore to a new database from that backup file if space permits?|||jimpen: A very compelling plan! BTW, do you really believe that system databases can be omitted from maintenance plans? Also, I don't think it's a good idea to just shrink logs of all databases accross the board. Those with Full Recovery mode should have log device pre-allocated to avoid growth overhead during business hours.|||Originally posted by rdjabarov
jimpen: A very compelling plan! BTW, do you really believe that system databases can be omitted from maintenance plans? Also, I don't think it's a good idea to just shrink logs of all databases accross the board. Those with Full Recovery mode should have log device pre-allocated to avoid growth overhead during business hours.

As I said, I do the system DBs for grins. I have kept our server very vanilla. There is only one stored procedure, and a table that I would like to retain after a crash. And even then, that table's data is kept elsewhere. I also changed the model a little for standards sake (min 50MB log file). If it is a minor crash, SQL server will generally either recover itself, or need a little work from the SysAdm and it will come up. But I've had mine go down on Apps install so bad that I had MS's support in one ear and a consultant in the other. After a day, they said just reinstall and reattach the other databases. Nothing could be recovered from the master, model, etc.

As for the log files, I already have them set up for a larger minimum size where needed. The rollback DBs get their transactions backed up and then are truncated. The slow database are just automatic trunc on checkpoint so they never really grow.|||wow, that's pretty brave! Good luck!|||What's brave about it?

As long as the tape backups are working, even if someone walked in and ran an axe through the hard drives the worst loss is about 24 hours of data.

We are primarily a daylight business - about 7A-7P Mon-Fri with some weekend dedicated types.

If the server crashes at on Sunday at midnight and W2K Server has to be reinstalled as well as the SQL 7, the model, master, msdb and tempdb will all be replaced anyway. It is virtually impossible to restore a master database. Sometime, build a baby server and try it.

After the reinstall on the same server, if the DB files are still on the volume, you can run a sp_attach_db to get them back online. If you lost the volume and are starting with a blank HD, then you have the files restored from tape to the \mssql\backup directory and then proceed to restore the database to it's original place.

If someone went bogus on the data and multiplied every table by 5 times then you have a PIT recovery. And if it was done Saturday then you get back to Friday after hours.

And this is not even considering that you publish the database.|||Thanks for the help guys, this has turned out to become an interesting discussion of a vital subject. I consider myself a bit of a newbie in this area, so I'm glad about the input.

About the backups. No, I haven't tried restoring from the files, I just sort assumed they were ok. The file size seemed all right, so I figured they were just fine. The log files produced by the maint. job said something like this:

'Backup can not be performed on database 'msdb'. This sub task is ignored.'

, but I'm suspecting this might be about the transaction log backups Those log files are not always as helpful as I'd wish...

Anyway, I'm now doing local backups now and that seems to work a lot better. Today the log file said succes at the bottom! Except for what seems to be the log file for the transaction log backups. I'll have to delve into that a little deeper.

Btw, the backup plan I use is the following:
1. Weekly full and daily incremental backups on tape for major database servers
2. Daily full backups on disk for all database servers

I like to have backups on tape in case the office burns down or whatever. I don't differentiate too much between different databases within the same server. The reasons for this are twofold. I don't feel I know enough about it, and I don't feel I have the time. Also, people tend to create new databases as often as they change their underwear here, and that does not make administering the servers any eaiser.

Again, thanks for the input.

MNJ|||Btw, I use Veritas Backup Exec 9.0 and that seems to work just fine with the agents and all. And yes, I have done test restores.

MNJ|||Hello again.

Just wanted to say that backups work fine now that they're being done locally. Except for the transaction log backups which still fail.

I think this is an unrelated problem though, so I've started a new thread at: http://65.61.175.198/showthread.php?threadid=889573

Again, any help and comments will be greatly appreciated.

MNJ|||Originally posted by kilobyte
I don't differentiate too much between different databases within the same server. The reasons for this are twofold. I don't feel I know enough about it, and I don't feel I have the time. Also, people tend to create new databases as often as they change their underwear here, and that does not make administering the servers any eaiser.
MNJ

If they are just adding database(s) and developing/testing on your production servers you need to slap some people around :( . They can and will at some point crash your SQL and/or server with some process that goes wild or access the disk and delete an important file.

You may need to speak up at some point and make them realize that they need to have test/development servers versus daily production.

I work for a relatively small company and even we have scraped an older server into using as a test box before we fire it up onto the production SQL server.|||Originally posted by jimpen
If they are just adding database(s) and developing/testing on your production servers you need to slap some people around :( . They can and will at some point crash your SQL and/or server with some process that goes wild or access the disk and delete an important file.

You may need to speak up at some point and make them realize that they need to have test/development servers versus daily production.


I know, I know. We are in that phase now in fact, trying to have test servers for each production server. There have been times, though, where it's been necessary to change something really quickly, and I am fully aware that it is not a good strategy.

I've begun thinking about how to come up with a new maintenance plan, and I just might start a new thread on that subject, to get some input from outside.

Anyways, thanks for the help so far, you've all saved me hours of work!

MNJ|||kilobyte: You're getting transaction log backup errors probably because you included databases with simple recovery mode. In one of your posts you mentioned msdb. This database will always start up in simple recovery mode, which will fail the entire step even if the rest of db's got backed up successfully.

jimpen: you said that "It is virtually impossible to restore a master database." - I have no more comments :)|||Originally posted by rdjabarov
kilobyte: You're getting transaction log backup errors probably because you included databases with simple recovery mode. In one of your posts you mentioned msdb. This database will always start up in simple recovery mode, which will fail the entire step even if the rest of db's got backed up successfully.

You're right, that is the problem.

MNJ

Saturday, February 25, 2012

Maintenance Plans

1) Is it a good practice to use the Maintenance Plans to back up the
database, trans logs, and organize the index, and verify the data?
2) How often would it be good practice to run the recreating of index and
verifying the data?
3) Or it's better just create one jobs to backup database etc?
4) Are there any negative to using Maintenance Plans
Thank You
There are no one size fits all answer for these types of questions. If you have responsibility for
these things, then you have responsibility to understand how backup etc work in SQL Server, learn
how the maint wizard work and based on that make decisions whether maint wiz is good for your
organization. Regarding reindexing, I suggest you read
http://www.microsoft.com/technet/pro...ss2kidbp.mspx.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Victoria Morrison" <Victoria Morrison@.discussions.microsoft.com> wrote in message
news:CCA01C5B-D86A-4846-8682-50DBA0B24C37@.microsoft.com...
> 1) Is it a good practice to use the Maintenance Plans to back up the
> database, trans logs, and organize the index, and verify the data?
> 2) How often would it be good practice to run the recreating of index and
> verifying the data?
> 3) Or it's better just create one jobs to backup database etc?
> 4) Are there any negative to using Maintenance Plans
> Thank You
|||"Tibor Karaszi" wrote:

> There are no one size fits all answer for these types of questions. If you have responsibility for
> these things, then you have responsibility to understand how backup etc work in SQL Server, learn
> how the maint wizard work and based on that make decisions whether maint wiz is good for your
> organization. Regarding reindexing, I suggest you read
> http://www.microsoft.com/technet/pro...ss2kidbp.mspx.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Victoria Morrison" <Victoria Morrison@.discussions.microsoft.com> wrote in message
> news:CCA01C5B-D86A-4846-8682-50DBA0B24C37@.microsoft.com...
>
>

Maintenance Plans

1) Is it a good practice to use the Maintenance Plans to back up the
database, trans logs, and organize the index, and verify the data?
2) How often would it be good practice to run the recreating of index and
verifying the data?
3) Or it's better just create one jobs to backup database etc?
4) Are there any negative to using Maintenance Plans
Thank YouThere are no one size fits all answer for these types of questions. If you have responsibility for
these things, then you have responsibility to understand how backup etc work in SQL Server, learn
how the maint wizard work and based on that make decisions whether maint wiz is good for your
organization. Regarding reindexing, I suggest you read
http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Victoria Morrison" <Victoria Morrison@.discussions.microsoft.com> wrote in message
news:CCA01C5B-D86A-4846-8682-50DBA0B24C37@.microsoft.com...
> 1) Is it a good practice to use the Maintenance Plans to back up the
> database, trans logs, and organize the index, and verify the data?
> 2) How often would it be good practice to run the recreating of index and
> verifying the data?
> 3) Or it's better just create one jobs to backup database etc?
> 4) Are there any negative to using Maintenance Plans
> Thank You|||"Tibor Karaszi" wrote:
> There are no one size fits all answer for these types of questions. If you have responsibility for
> these things, then you have responsibility to understand how backup etc work in SQL Server, learn
> how the maint wizard work and based on that make decisions whether maint wiz is good for your
> organization. Regarding reindexing, I suggest you read
> http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/ss2kidbp.mspx.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "Victoria Morrison" <Victoria Morrison@.discussions.microsoft.com> wrote in message
> news:CCA01C5B-D86A-4846-8682-50DBA0B24C37@.microsoft.com...
> > 1) Is it a good practice to use the Maintenance Plans to back up the
> > database, trans logs, and organize the index, and verify the data?
> >
> > 2) How often would it be good practice to run the recreating of index and
> > verifying the data?
> >
> > 3) Or it's better just create one jobs to backup database etc?
> >
> > 4) Are there any negative to using Maintenance Plans
> >
> > Thank You
>
>

Maintenance Plans

1) Is it a good practice to use the Maintenance Plans to back up the
database, trans logs, and organize the index, and verify the data?
2) How often would it be good practice to run the recreating of index and
verifying the data?
3) Or it's better just create one jobs to backup database etc?
4) Are there any negative to using Maintenance Plans
Thank YouThere are no one size fits all answer for these types of questions. If you h
ave responsibility for
these things, then you have responsibility to understand how backup etc work
in SQL Server, learn
how the maint wizard work and based on that make decisions whether maint wiz
is good for your
organization. Regarding reindexing, I suggest you read
http://www.microsoft.com/technet/pr...ver/default.asp
http://www.solidqualitylearning.com/
"Victoria Morrison" <Victoria Morrison@.discussions.microsoft.com> wrote in m
essage
news:CCA01C5B-D86A-4846-8682-50DBA0B24C37@.microsoft.com...
> 1) Is it a good practice to use the Maintenance Plans to back up the
> database, trans logs, and organize the index, and verify the data?
> 2) How often would it be good practice to run the recreating of index and
> verifying the data?
> 3) Or it's better just create one jobs to backup database etc?
> 4) Are there any negative to using Maintenance Plans
> Thank You|||"Tibor Karaszi" wrote:

> There are no one size fits all answer for these types of questions. If you
have responsibility for
> these things, then you have responsibility to understand how backup etc wo
rk in SQL Server, learn
> how the maint wizard work and based on that make decisions whether maint w
iz is good for your
> organization. Regarding reindexing, I suggest you read
> http://www.microsoft.com/technet/pr...ver/default.asp
> http://www.solidqualitylearning.com/
>
> "Victoria Morrison" <Victoria Morrison@.discussions.microsoft.com> wrote in
message
> news:CCA01C5B-D86A-4846-8682-50DBA0B24C37@.microsoft.com...
>
>

Monday, February 20, 2012

Maintenance Plan: Backup Database Task (Backup Transaction Log opt

Hello.
I have an issue making transaction logs backups with the Backup Database
Task within a Maintenance Plan.
(1) When I check the option to backup trn logs of all users databases, all
databases or any selection, then save the subplan and reopen the task
properties and this selection is lost. That is to say, the option
Databases(to backup) is set again to <Select one or more>
(2)When I execute the plan, it fails with an error saying something like "it
can't make backup of a bd with simple model recovery option" (if there was
one like that in the server).
It's supposed that in the selection of databases in this task I don′t selec
t
any database with that option(in addition, it doesn't let you do that
logically), but I think the reason for the error is that the selection of
databases isn't saved (see 1).
(3) It also fails when the plan is created and executing ok, and I create a
new database. Then the next execution fails until I make a TRN Log backup of
the new database manually. After that, next plan execution runs ok.
The error in this case is: "Failed-1073548784)". I think It could be also
due to (1).
Can anybody help me? Is an error in Maintenanced plans with Sp2?
By the way, Sql version is SP2.
Then plan has been created with "new plan option" -> add "Backup database
task"
(without wizard)
Thanks, JuanSa.Hi
"JuanSa" wrote:

> Hello.
> I have an issue making transaction logs backups with the Backup Database
> Task within a Maintenance Plan.
> (1) When I check the option to backup trn logs of all users databases, all
> databases or any selection, then save the subplan and reopen the task
> properties and this selection is lost. That is to say, the option
> Databases(to backup) is set again to <Select one or more>
I have run through this and when re-editing the plan it does seem to "loose"
the selected databases, also when you re-select the databases the destinatio
n
files are changed back to one per database. You don't need to enter the drop
down list for this to happen, just changing the overwrite/append option seem
s
to do this. it does not seem to happen with Full backups.

> (2)When I execute the plan, it fails with an error saying something like "
it
> can't make backup of a bd with simple model recovery option" (if there was
> one like that in the server).
> It's supposed that in the selection of databases in this task I don′t sel
ect
> any database with that option(in addition, it doesn't let you do that
> logically), but I think the reason for the error is that the selection of
> databases isn't saved (see 1).
Simple recovery mode databases are not listed in the selectable database
when you choose transaction logs. They should be ignored for the other
options as well!

> (3) It also fails when the plan is created and executing ok, and I create
a
> new database. Then the next execution fails until I make a TRN Log backup
of
> the new database manually. After that, next plan execution runs ok.
> The error in this case is: "Failed-1073548784)". I think It could be als
o
> due to (1).
You would expect an error for a transaction log backup if there was not a
full backup previously. This would occur for the all databases/all user
databases option but not the specifically selected databases unless you add
it to the list.

> Can anybody help me? Is an error in Maintenanced plans with Sp2?
> By the way, Sql version is SP2.
> Then plan has been created with "new plan option" -> add "Backup database
> task"
> (without wizard)
>
I used the add maintenance plan option under maintenance plans, but it
results in the same thing! BI studio also seems to do the same, if you just
go into the plan and choose the View SQL it comes up with no statements.

> Thanks, JuanSa.
>
You could call PSS
https://support.microsoft.com/oas/d...508&gprid=2855&
or log a fault at https://connect.microsoft.com/SQLServer/feedback (if you
do this post the number)
Alternatively you could use the view SQL option to save the SQL that will be
run and create a job of your own which will do this.
John|||The FeedbackID is 262295
https://connect.microsoft.com/SQLSe...=2622
95|||On May 13, 4:22 am, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
> "JuanSa" wrote:
>
>
all[vbcol=seagreen]
> I have run through this and when re-editing theplanit does seem to "loose"
> the selected databases, also when you re-select the databases the destina=
tion
> files are changed back to one per database. You don't need to enter the d=
rop
> down list for this to happen, just changing the overwrite/append option s=
eems
> to do this. it does not seem to happen with Full backups.
>
>
"it[vbcol=seagreen]
was[vbcol=seagreen]
elect[vbcol=seagreen]
> Simple recovery mode databases are not listed in the selectable database
> when you choose transaction logs. They should be ignored for the other
> options as well!
>
>
a[vbcol=seagreen]
up of[vbcol=seagreen]
>
also[vbcol=seagreen]
> You would expect an error for a transaction log backup if there was not a
> full backup previously. This would occur for the all databases/all user
> databases option but not the specifically selected databases unless you a=
dd
> it to the list.
>
>
> I used the addmaintenanceplanoption undermaintenanceplans, but it
> results in the same thing! BI studio also seems to do the same, if you ju=
st
> go into theplanand choose the View SQL it comes up with no statements.
>
> You could call PSShttps://support.microsoft.com/oas/default.aspx?&c1=3D50=
8&gprid=3D2855&
> or log a fault athttps://connect.microsoft.com/SQLServer/feedback(if you
> do this post the number)
> Alternatively you could use the view SQL option to save the SQL that will=
be
> run and create a job of your own which will do this.
> John

Maintenance Plan: Backup Database Task (Backup Transaction Log opt

Hello.
I have an issue making transaction logs backups with the Backup Database
Task within a Maintenance Plan.
(1) When I check the option to backup trn logs of all users databases, all
databases or any selection, then save the subplan and reopen the task
properties and this selection is lost. That is to say, the option
Databases(to backup) is set again to <Select one or more>
(2)When I execute the plan, it fails with an error saying something like "it
can't make backup of a bd with simple model recovery option" (if there was
one like that in the server).
It's supposed that in the selection of databases in this task I don´t select
any database with that option(in addition, it doesn't let you do that
logically), but I think the reason for the error is that the selection of
databases isn't saved (see 1).
(3) It also fails when the plan is created and executing ok, and I create a
new database. Then the next execution fails until I make a TRN Log backup of
the new database manually. After that, next plan execution runs ok.
The error in this case is: "Failed:(-1073548784)". I think It could be also
due to (1).
Can anybody help me? Is an error in Maintenanced plans with Sp2?
By the way, Sql version is SP2.
Then plan has been created with "new plan option" -> add "Backup database
task"
(without wizard)
Thanks, JuanSa.Hi
"JuanSa" wrote:
> Hello.
> I have an issue making transaction logs backups with the Backup Database
> Task within a Maintenance Plan.
> (1) When I check the option to backup trn logs of all users databases, all
> databases or any selection, then save the subplan and reopen the task
> properties and this selection is lost. That is to say, the option
> Databases(to backup) is set again to <Select one or more>
I have run through this and when re-editing the plan it does seem to "loose"
the selected databases, also when you re-select the databases the destination
files are changed back to one per database. You don't need to enter the drop
down list for this to happen, just changing the overwrite/append option seems
to do this. it does not seem to happen with Full backups.
> (2)When I execute the plan, it fails with an error saying something like "it
> can't make backup of a bd with simple model recovery option" (if there was
> one like that in the server).
> It's supposed that in the selection of databases in this task I don´t select
> any database with that option(in addition, it doesn't let you do that
> logically), but I think the reason for the error is that the selection of
> databases isn't saved (see 1).
Simple recovery mode databases are not listed in the selectable database
when you choose transaction logs. They should be ignored for the other
options as well!
> (3) It also fails when the plan is created and executing ok, and I create a
> new database. Then the next execution fails until I make a TRN Log backup of
> the new database manually. After that, next plan execution runs ok.
> The error in this case is: "Failed:(-1073548784)". I think It could be also
> due to (1).
You would expect an error for a transaction log backup if there was not a
full backup previously. This would occur for the all databases/all user
databases option but not the specifically selected databases unless you add
it to the list.
> Can anybody help me? Is an error in Maintenanced plans with Sp2?
> By the way, Sql version is SP2.
> Then plan has been created with "new plan option" -> add "Backup database
> task"
> (without wizard)
>
I used the add maintenance plan option under maintenance plans, but it
results in the same thing! BI studio also seems to do the same, if you just
go into the plan and choose the View SQL it comes up with no statements.
> Thanks, JuanSa.
>
You could call PSS
https://support.microsoft.com/oas/default.aspx?&c1=508&gprid=2855&
or log a fault at https://connect.microsoft.com/SQLServer/feedback (if you
do this post the number)
Alternatively you could use the view SQL option to save the SQL that will be
run and create a job of your own which will do this.
John|||On May 13, 4:22 am, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
> "JuanSa" wrote:
> > Hello.
> > I have an issue making transaction logs backups with the Backup Database
> > Task within aMaintenancePlan.
> > (1) When I check the option to backup trn logs of all users databases, =all
> > databases or anyselection, then save the subplan and reopen the task
> > properties and thisselectionis lost. That is to say, the option
> > Databases(to backup) is set again to <Select one or more>
> I have run through this and when re-editing theplanit does seem to "loose"
> the selected databases, also when you re-select the databases the destina=tion
> files are changed back to one per database. You don't need to enter the d=rop
> down list for this to happen, just changing the overwrite/append option s=eems
> to do this. it does not seem to happen with Full backups.
>
> > (2)When I execute theplan, it fails with an error saying something like= "it
> > can't make backup of a bd with simple model recovery option" (if there =was
> > one like that in the server).
> > It's supposed that in theselectionof databases in this task I don=B4t s=elect
> > any database with that option(in addition, it doesn't let you do that
> > logically), but I think the reason for the error is that theselectionof
> > databases isn't saved (see 1).
> Simple recovery mode databases are not listed in the selectable database
> when you choose transaction logs. They should be ignored for the other
> options as well!
>
> > (3) It also fails when theplanis created and executing ok, and I create= a
> > new database. Then the next execution fails until I make a TRN Log back=up of
> > the new database manually. After that, nextplanexecution runs ok.
> > The error in this case is: "Failed:(-1073548784)". I think It could be =also
> > due to (1).
> You would expect an error for a transaction log backup if there was not a
> full backup previously. This would occur for the all databases/all user
> databases option but not the specifically selected databases unless you a=dd
> it to the list.
> > Can anybody help me? Is an error in Maintenanced plans with Sp2?
> > By the way, Sql version is SP2.
> > Thenplanhas been created with "newplanoption" -> add "Backup database
> > task"
> > (without wizard)
> I used the addmaintenanceplanoption undermaintenanceplans, but it
> results in the same thing! BI studio also seems to do the same, if you ju=st
> go into theplanand choose the View SQL it comes up with no statements.
> > Thanks, JuanSa.
> You could call PSShttps://support.microsoft.com/oas/default.aspx?&c1=3D50=8&gprid=3D2855&
> or log a fault athttps://connect.microsoft.com/SQLServer/feedback(if you
> do this post the number)
> Alternatively you could use the view SQL option to save the SQL that will= be
> run and create a job of your own which will do this.
> John|||The FeedbackID is 262295
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=262295

Maintenance Plan: Backup Database Task (Backup Transaction Log opt

Hello.
I have an issue making transaction logs backups with the Backup Database
Task within a Maintenance Plan.
(1) When I check the option to backup trn logs of all users databases, all
databases or any selection, then save the subplan and reopen the task
properties and this selection is lost. That is to say, the option
Databases(to backup) is set again to <Select one or more>
(2)When I execute the plan, it fails with an error saying something like "it
can't make backup of a bd with simple model recovery option" (if there was
one like that in the server).
It's supposed that in the selection of databases in this task I don′t select
any database with that option(in addition, it doesn't let you do that
logically), but I think the reason for the error is that the selection of
databases isn't saved (see 1).
(3) It also fails when the plan is created and executing ok, and I create a
new database. Then the next execution fails until I make a TRN Log backup of
the new database manually. After that, next plan execution runs ok.
The error in this case is: "Failed-1073548784)". I think It could be also
due to (1).
Can anybody help me? Is an error in Maintenanced plans with Sp2?
By the way, Sql version is SP2.
Then plan has been created with "new plan option" -> add "Backup database
task"
(without wizard)
Thanks, JuanSa.
Hi
"JuanSa" wrote:

> Hello.
> I have an issue making transaction logs backups with the Backup Database
> Task within a Maintenance Plan.
> (1) When I check the option to backup trn logs of all users databases, all
> databases or any selection, then save the subplan and reopen the task
> properties and this selection is lost. That is to say, the option
> Databases(to backup) is set again to <Select one or more>
I have run through this and when re-editing the plan it does seem to "loose"
the selected databases, also when you re-select the databases the destination
files are changed back to one per database. You don't need to enter the drop
down list for this to happen, just changing the overwrite/append option seems
to do this. it does not seem to happen with Full backups.

> (2)When I execute the plan, it fails with an error saying something like "it
> can't make backup of a bd with simple model recovery option" (if there was
> one like that in the server).
> It's supposed that in the selection of databases in this task I don′t select
> any database with that option(in addition, it doesn't let you do that
> logically), but I think the reason for the error is that the selection of
> databases isn't saved (see 1).
Simple recovery mode databases are not listed in the selectable database
when you choose transaction logs. They should be ignored for the other
options as well!

> (3) It also fails when the plan is created and executing ok, and I create a
> new database. Then the next execution fails until I make a TRN Log backup of
> the new database manually. After that, next plan execution runs ok.
> The error in this case is: "Failed-1073548784)". I think It could be also
> due to (1).
You would expect an error for a transaction log backup if there was not a
full backup previously. This would occur for the all databases/all user
databases option but not the specifically selected databases unless you add
it to the list.

> Can anybody help me? Is an error in Maintenanced plans with Sp2?
> By the way, Sql version is SP2.
> Then plan has been created with "new plan option" -> add "Backup database
> task"
> (without wizard)
>
I used the add maintenance plan option under maintenance plans, but it
results in the same thing! BI studio also seems to do the same, if you just
go into the plan and choose the View SQL it comes up with no statements.

> Thanks, JuanSa.
>
You could call PSS
https://support.microsoft.com/oas/default.aspx?&c1=508&gprid=2855&
or log a fault at https://connect.microsoft.com/SQLServer/feedback (if you
do this post the number)
Alternatively you could use the view SQL option to save the SQL that will be
run and create a job of your own which will do this.
John
|||The FeedbackID is 262295
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=262295
|||On May 13, 4:22 am, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
> "JuanSa" wrote:
>
> I have run through this and when re-editing theplanit does seem to "loose"
> the selected databases, also when you re-select the databases the destination
> files are changed back to one per database. You don't need to enter the drop
> down list for this to happen, just changing the overwrite/append option seems
> to do this. it does not seem to happen with Full backups.
>
>
> Simple recovery mode databases are not listed in the selectable database
> when you choose transaction logs. They should be ignored for the other
> options as well!
>
>
> You would expect an error for a transaction log backup if there was not a
> full backup previously. This would occur for the all databases/all user
> databases option but not the specifically selected databases unless you add
> it to the list.
>
> I used the addmaintenanceplanoption undermaintenanceplans, but it
> results in the same thing! BI studio also seems to do the same, if you just
> go into theplanand choose the View SQL it comes up with no statements.
>
> You could call PSShttps://support.microsoft.com/oas/default.aspx?&c1=508&gprid=2855&
> or log a fault athttps://connect.microsoft.com/SQLServer/feedback(if you
> do this post the number)
> Alternatively you could use the view SQL option to save the SQL that willbe
> run and create a job of your own which will do this.
> John

Maintenance plan wizard missing

Under Management, all I have is SQL Server Logs and Activity monitor, no option to create a maintenance plan or run the wizard ?Under management you have Maintenance plans,Sql server logs,activity monitor,dataabse mail etc........your question sounds bizzare.....just check if you are logged in with sysadmin privilege.......|||

which edition of sql server is this. I thing Express edition u have . in that case MP not supported in this edtion

Madhu

|||I am running SQL 2005, not Express.|||SQL 2005