If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Questions from a newbie - SQL server agent

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-04-10, 09:05
72camaross 72camaross is offline
Registered User
 
Join Date: Nov 2009
Location: Canada
Posts: 11
Questions from a newbie - SQL server agent

Hey guys,

I'm new to managing SQL servers with Server Enterprise Manager. (v.8). There are a bunch of databases set up on this server, some of which are replicating to another server or db. I'm trying to set up an integrity check on the main database and I'm trying to setup the mail session of the SQL server agent so I can get emails is something is not working.

My questions are:
If I stop and start the SQL server agent so the mail session property can be turned on, what will happen with the replication that is running? and are there any other events that are going to happen if I do this?

What is the best way to set up an integrity check for the Main database? How often should it run? Will it affect the replication process? And how do I schedule it to run when I want it to?

Thanks,
JD
Reply With Quote
  #2 (permalink)  
Old 02-04-10, 09:20
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
When you stop and restart SQL Agent, the replication agents should come back up normally. You can check this in Replication Monitor in Enterprise Manager, by looking for the Distribution Agents folder. Some will not show as running, if they are on an actual schedule, as opposed to running continuously. This is OK. You should be able to right click on each agent to check what the actual schedule is.

I usually do the integrity check (here, I am assuming you mean DBCC CHECKDB) on Sundays. Some people do theirs every day. This is because the performance can suffer while the integrity check is running. The actual impact for your database(s) will be something you will have to determine for yourself, though.
Reply With Quote
  #3 (permalink)  
Old 02-04-10, 11:34
72camaross 72camaross is offline
Registered User
 
Join Date: Nov 2009
Location: Canada
Posts: 11
The replication agents are running constantly. I will have to wait for a down time to see if I can start/stop the SQL server agent to get the email working.

Yes I was talking about DBCC CHECKDB. I found it in a maintenance plan and it was set to run every night at 11pm but there was never a record of it happening in the log? I'm not sure why? I know a lot of different backups happen around 12am or 00:00 so maybe it wasn't getting a chance to finish?

How would I determine the impact on my database from running it nightly to once a week??

Thanks for all your help!
JD
Reply With Quote
  #4 (permalink)  
Old 02-04-10, 12:43
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
I am not sure if the Maintenance plan logs the DBCC run, but the SQL Server errorlog should.

As for determining the impact, run it, and watch perfmon, task manager, current processes, and see if there are any adverse effects. I would wager you are not talking about 100GB+ databases.
Reply With Quote
  #5 (permalink)  
Old 02-04-10, 13:11
72camaross 72camaross is offline
Registered User
 
Join Date: Nov 2009
Location: Canada
Posts: 11
I am assuming it does log the DBCC CHECKDB runs because I have all my other database's checkdbs showing up, just not for the 2 main ones that run close to other backup stuff.

Yeah I'm using old crappy servers and trying to get everything ported over to a new one eventually. Too many little home-made programs and scripts that I can't find them all. Not to mention the VAX programs and quel DBs haha but I won't go to far into it.

The databases I work with are smaller then 1 gig...

Thanks again! I'll see if I can monitor some stuff and see how it goes.
Reply With Quote
  #6 (permalink)  
Old 02-04-10, 13:44
MCrowley MCrowley is offline
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
For databases at that size, you probably won't even notice a DBCC CHECKDB running, unless you were specifically looking for it. Run it any time. If you have doubts about the hardware, run it daily, so you can pick up errors due to hardware failures.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On