Site sponsored by: Idera Try Idera’s new SQL admin toolset
SQL Server Performance

  • Home
  • Articles
  • Forums
  • Tips
  • Quiz
  • FAQ's
  • Blogs
  • Software
  • Books
  • About Us
RSS Feeds
Sign in | Join


Article Topics

All Articles
Performance Tuning
Audit
Business Intelligence
Clustering
Reporting Services
Developer
General DBA
ASP.NET / ADO.NET

Write for Us

Share you SQL Server knowledge with others and raise your profile in the community More...
Latest Articles

Resource Governor in SQL Server 2008
Tweaks in SQL Server Reporting Services
Configure Filestream in SQL Server 2008
Capture DDL Changes using Change Data Capture with SQL Server 2008 ...

More     
 
Latest FAQ's

SQL Server Reporting Server (SSRS) service is failing to start ...
Cannot Start SQL Server Service
Users are able to connect to report manager but not able ...
Errors when SQL Server Snapshot Replication is Running

More     
   
Latest Software Reviews

Spotlight on ApexSQL Doc 2008
ApexSQL Enforce
Embarcadero Change Manager
SQL Server DBA Dashboard

More     

articles >> general dba >> Taking a Proactive Approach with SQL Server ...

Taking a Proactive Approach with SQL Server Agent

By : Frank Garcia
Jan 10, 2004

Page 2 / 3

Whether creating Jobs and/or Alerts, Operators is the component which allows a DBA to configure SQL Server to be able to contact anyone when an alert occurs.

Note: In order to configure notifications from a job or an alert, mail support must be configured at the server. The SQLServerAgent service collaborates with the SQLAgentMail agent, which is used to send e-mail to assigned operators when an alert has fired. It is necessary to have a mail account, either through Exchange or possibly via an Internet e-mail account, to configure mail support. There are topics that can be found in SQL Server Books Online that detail the steps in configuring mail support.

Once mail support is configured on your SQL Server, you can configure the SQLServerAgent and MSSQL Server services to use a mail profile to send and receive e-mail.

  1. Launch Enterprise Manger.
     
  2. Expand the tree objects until you get to Management.
     
  3. Right-click the SQL Agent and select properties.
     
  4. In the properties you can select the mail profile configured to receive e-mail.
     
  5. Use the Test button to verify the profile.
     
  6. Apply all changes and restart the SQLServerAgent service.

You can now configure your alerts to notify operators when an event has occurred.

In order to keep your database performance consistent, there are specific tasks that need to be accomplished. T-SQL gives you database consistency statements to verify the physical and logical state of a database - in turn keeping its consistency. Since numerous tasks need to be performed, we can avoid creating multiple jobs for each database by using the Database Maintenance Plan Wizard. The Database Maintenance Plan Wizard will not be covered in this article; however, this article will point out the maintenance commands briefly.

There is a great Database Maintenance Plan article on this site entitled Inside SQL Server Maintenance Plans by Andrzej Kozlowski (http://www.sql-server-performance.com/ak_inside_sql_server_maintenance_plans.asp) for your reading.

Database console commands are grouped into specific categories. The statement categories are as follows:

  • Maintenance Statements: Maintenance tasks on a database, index or filegroup. (for example: DBCC DBREINDEX, DBCC SHRINKFILE)
     
  • Misc. Statements: Enabling row-level locking or removing a DLL from memory. (for example: DBCC [dllname] (FREE), DBCC TRACEON, DBCC ROWLOCK)
     
  • Status Statements: Status Checks (for example: DBCC SHOWCONTIG, DBCC SHOW STATISTICS)
     
  • Validation Statements: Validation operations on a db, table, index, catalog, filegroup, systables or allocation of db pages. (for example: DBCC CHECKDB, DBCC NEWALLOC, DBCC CHECKCATALOG)

These commands can be processed separately within the SQL Agent Jobs component, or packaged into one plan by using the Database Maintenance Plan Wizard. Nonetheless, after going through the action menu and selecting the console commands specific to your environment; you would need to schedule the plan accordingly. The maintenance wizard works in collaboration with SQL Agent by utilizing the Job's scheduling utility.


<< Prev Page     Next Page>>    








Home | Peformance Articles | Audit Articles | Business Intelligence Articles | Clustering Articles | Developer Articles | Reporting Services Articles | DBA Articles | ASP.NET / ADO.NET Articles | DBA FAQ's | Developer Peformance FAQ's | DBA Peformance FAQ's | Developer FAQ's | Clustering FAQ's | Error Messages | Audit Tool Reviews | Backup Tool Reviews | Coding Tool Reviews | Compare Tool Reviews | Documentation Tool Reviews | Design Tool Reviews | Monitoring Tool Reviews | Log Tool Reviews | Reporting Tool Reviews | Clustering Tool Reviews | Security Tool Reviews | Change Management Tool Reviews | Remote Access Tool Reviews | Book Reviews | Security Tool Reviews | QDPMA Performance Tuning | ADO.NET / ASP.NET | Administration | Analysis/OLAP Services | Application Development | Configuration | Components | ETL | Hardware | High Availability | Hints | Index | Misc | Operating Systems | Performance Tuning | Replication | T-SQL | Views


              © 1999-2008 by T10 Media. All rights reserved