Academic Tutorials



English | French | Portugese | German | Italian
Google

Home Testimonials Advertise Contact Us About Us Link to Us
Source Codes E-Books Downloads Jobs Web Hosting Chats

SQL Server
SQL Server Automating Administration
SQL Server Full Text Searching
SQL Server Installing
SQL Server Selecting XML Data
SQL Server XSL Stylesheets
SQL Server Stored Procedures
SQL Server XDR Schemes
SQL Server Indexed Views
SQL Server Introduction
SQL Server Data Statements
SQL Server SELECT Statement
SQL Server Modification Statements
SQL ServerTransaction Statements
SQL Server Schema Statements
SQL Server XML Introduction
SQL Server XML Templates

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
CSS 1.0
CSS 2.0
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
CVS
Python
Apple Script
PL/SQL Tutorial
SQL Server
.NET (dotnet)
Microsoft.Net
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
VC++
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Photoshop Tutorial
Gimp Tutorial
Matlab
Gnuplot Programming
GIF Animation Tutorial
Scientific Visualization Tutorial
Graphics
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Weblogic Tutorial
SEO
Web Site Hosting
Domain Name
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Eclipse
J2ME
JBOSS
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Cobol
Assembly Language
Mainframe
Forth Programming
Lisp Programming
Pascal
Delphi
Fortran
Oops
Data Ware Housing
CGI Programming
Emacs Tutorial
Gnome
ILU
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills
Database Tutorials
Oracle
MySQL
Operating System
BSD
Symbian
Unix
Internet
IP-Masquerading
IPC
MIDI
Software Testing
Testing
Firewalls
SAP Module
ERP
ABAP
Business Warehousing
SAP Basis
Material Management
Sales & Distribution
Human Resource
Netweaver
Customer Relationship Management
Production and Planning
Networking Programming
Corba Tutorial
Networking Tutorial
Microsoft Office
Microsoft Word
Microsoft Outlook
Microsoft PowerPoint
Microsoft Publisher
Microsoft Excel
Microsoft FrontPage
Microsoft InfoPath
Microsoft Access
Accounting
Financial Accounting
Managerial Accounting
Computer Basics
Basics of Computer


Automating Administration

Previoushome Next




Automating Administration

 

Automating Administration Topics in this Tutorials

  • Automation overview
  • Setting up SQLMail
  • Setting up operators
  • Jobs, events and alerts
  • Types of job
  • Creating user-defined error messages
  • Setting up alerts
  • Multi-server jobs

Automation Overview

Design Goal: Easier Administration

One of SQL Server design goals has always been to make life easier for administrators. This includes a number of features:

  • Integration with Mail. You can set up operators with email or pager addresses that can be automatically sent messages when a problem occurs.
  • Automated Jobs. You can set up jobs that are scheduled to run at regular intervals. These jobs can be made up of multiple steps with different steps being run based on the success of failure of previous steps.
  • Alerts. These can be set up to detect foreseen problems, such as disk-full errors. Alerts can run jobs and contact operators through email.

Set Up SQLMail

Mail Overview

Microsoft SQL Server 2000 has been designed to integrate with MAPI (Messaging Application Programming Interface) email applications. Microsoft Exchange is the recommended mail application for this purpose.

You can set up Microsoft SQL Server as a Mail Client so that mail messages can be sent directly from the database server when an event happens.

Some applications of this feature might be:

  • A trigger on a sales table that sends an email message to the relevant salesman if a big order has been made.
  • A procedure that sends an email message to an administrator with a list of current users.
  • Email messages to the server, requesting information can be returned to the users every day.
  • Email messages to operators when a back-up fails.

SQL Mail Architecture

When you configure a network enabling SQL Server to talk to Microsoft Exchange you need to have a Mail client on the SQL Server machine set up to 'talk' to Exchange.



Configuring a Microsoft Exchange profile for SQL Server

Before you can configure SQL Server to be mail-enabled you have to set up a profile on Microsoft Exchange for SQL Server itself or more specifically, the domain account under which the MSSQLServer service is running.

To do this you must:

  • Create an account for both SQLServerAgent and MSSQLServer (you can create separate accounts for each of them if you prefer) to run under an account with administrative rights on the domain

If you are doing this in Windows 2000 with Exchange Server installed you will be given the opportunity to create an email account for the new user too.

In the example below the user SQLAgent has been created for this purpose.



Once this has been done, you must perform the following steps to configure a Microsoft Exchange profile for that account:

  • Log onto the SQL Server machine itself as the Windows domain account you have set up for the MSSQLServer and SQLServerAgent services

The system should configure Internet Explorer if it is the first time you have logged on as this account.

  • Right-click Microsoft Outlook and set the profile to use the mailbox you have set up
  • Exit Outlook and log out of Windows and back in again as Administrator

Now you need to go into SQL Server and configure SQLMail.

  • In Enterprise Manager, find and expand the Support Services folder
  • Right-click SQLMail and choose Properties



  • In the Mail Profile dialogue box, select or type MS Exchange Settings
  • Click Test and if it worked, Click OK

This has set the mailbox for the MSSQLServer (xp_sendmail) service. Next you must do the same thing for SQLServerAgent.

  • Expand the Management folder and right-click the SQLServer Agent service
  • In the dialogue box enter the MS Exchange Settings profile as before



  • Right-click SQLServerAgent and choose Start

 

 


 Related SQL Server Books
Professional ADO.NET 2 Programming with SQL Server 2005 Oracle and MySQL
Beginning SQL Server 2005 Programming
Beginning Transact-SQL with SQL Server 2000 and 2005
Pro SQL Server 2005
Professional ADO.NET 2 Programming with SQL Server 2005, Oracle and MySQL
More Link » »
 
 SQL Server FAQs
Why are my insert, update statements failing with the following error?
How to programmatically find out when the SQL Server service started?
How to get rid of the time part from the date returned by GETDATE function?
How to upload images or binary files into SQL Server tables?
How to run an SQL script file that is located on the disk, using T-SQL?
More Link » »
 
 SQL Server Interview Questions
What is Cascade and Restrict when we use DROP table in SQL SERVER ?
What is COMMIT & ROLLBACK statement in SQL ?
What is diffrence between OSQL and Query Analyzer ?
What is SQL whats its uses and its component ?
What is DTS in SQL Server ?
More Link » »
 
 SQL Server Articles
Buffer Managment in SQL
Data Retrieval
Data Storage in SQL
More Link » »
 
 SQL Server News
Microsoft Confirms SQL Server 2005 SP3
Microsoft Simplifies Data-Centric Development in Heterogeneous IT Environments
Virtual database storage for SQL Server: Friend or foe?
SQL Server Compact Edition FAQs
More Link » »


Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Previoushome Next

Keywords: Automating Administration, SQL Server, SQL Server, SQL Server Tutorial, SQL Server tutorial pdf, history of SQL Server, SQL Server Administration, learn SQL Server


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
CSS 1.0 Quiz
CSS 2.0 Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
CVS Quiz
Python Quiz
Apple Script Quiz
PL/SQL Quiz
SQL Server Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
VC++ Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Photoshop Quiz
Gimp Quiz
Matlab Quiz
Gnuplot Programming Quiz
GIF Animation Quiz
Scientific Visualization Quiz
Graphics Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Weblogic Quiz
SEO Quiz
Web Site Hosting Quiz
Domain Name Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Eclipse Quiz
J2ME Quiz
JBOSS Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Cobol Quiz
Assembly Language Quiz
Mainframe Quiz
Forth Programming Quiz
Lisp Programming Quiz
Pascal Quiz
Delphi Quiz
Fortran Quiz
Oops Quiz
Data Ware Housing Quiz
CGI Programming Quiz
Emacs Quiz
Gnome Quiz
ILU Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz
Database Quizes
Oracle Quiz
MySQL Quiz
Operating System Quizes
BSD Quiz
Symbian Quiz
Unix Quiz
Internet Quiz
IP-Masquerading Quiz
IPC Quiz
MIDI Quiz
Software Testing Quizes
Testing Quiz
Firewalls Quiz
SAP Module Quizes
ERP Quiz
ABAP Quiz
Business Warehousing Quiz
SAP Basis Quiz
Material Management Quiz
Sales & Distribution Quiz
Human Resource Quiz
Netweaver Quiz
Customer Relationship Management Quiz
Production and Planning Quiz
Networking Programming Quizes
Corba Quiz
Networking Quiz
Microsoft Office Quizes
Microsoft Word Quiz
Microsoft Outlook Quiz
Microsoft PowerPoint Quiz
Microsoft Publisher Quiz
Microsoft Excel Quiz
Microsoft FrontPage Quiz
Microsoft InfoPath Quiz
Microsoft Access Quiz
Accounting Quizes
Financial Accounting Quiz
Managerial Accounting Quiz
Computer Basics Quizes
Basics of Computer Quiz
Copyright © 2008. Academic Tutorials.com. All rights reserved Privacy Policies | About Us
Our Portals : Academic Tutorials | Best eBooksworld | Beyond Stats | City Details | Interview Questions | Discussions World | Excellent Mobiles | Free Bangalore | Give Me The Code | Gog Logo | Indian Free Ads | Jobs Assist | New Interview Questions | One Stop FAQs | One Stop GATE | One Stop GRE | One Stop IAS | One Stop MBA | One Stop SAP | One Stop Testing | Quick2Host | Quick2Host Mirror | Quick Site Kit | Sirf Dosti | Source Codes World | Tasty Food | Tech Archive | Testing Interview Questions | Tests World | The Galz | Top Masala | Vyom | Vyom eBooks | Vyom International | Vyom Links | Vyoms | Vyom World
Copyright © 2003-2009 Vyom Technosoft Pvt. Ltd., All Rights Reserved.