digestdot.com digestdot.com
Search:    Site Home -> About Us -> Security & Privacy -> ToS -> Add Url -> Submit Article   
Add Url
 

Property & Estate

Education & Learning

Automotive

Online & Indoor Games

Culture & Art

Jobs & Careers

Finance & Banking

Society & Communities

Eating & Drinking

Home Family & Garden

Online Shopping

Relationship & Lifestyle

Sports

Teens & Kids

Science & Research

Issues & News

Travel & Accommodation

Self Management

Entertainment

Law & Politics

Medical Care

Health & Hygiene

Internet & Computers

Business & Services

 

  Site Home » Automotive » Software Solutions
   
 

SQL Server System Stored Procedures

   
System Stored Procedures System stored procedures are packaged with SQL Server. Many procedures are used to administer SQL Server, but some are utilities that can be profitablly used by developers. They are global, and can be called from any database application without their fully qualified name. (They are all owned by dbo.) . They are all stored in the Master database, and have the prefix sp_. This is a reason why it is considered unwise to name local stored procedures with the sp_ prefix. They can be read by viewing their properties in the Query Analyzer.

The system-stored procedures are grouped into these categories.

Category
Description

Active Directory Procedures
Used to register instances of SQL Server and SQL Server databases in Microsoft Windows? 2000 Active Directory?.

Catalog Procedures
Implements ODBC data dictionary functions and isolates ODBC applications from changes to underlying system tables.

Cursor Procedures
Implements cursor variable functionality.

Database Maintenance Plan Procedures
Used to set up core maintenance tasks necessary to ensure database performance.

Distributed Queries Procedures
Used to implement and manage Distributed Queries.

Full-Text Search Procedures
Used to implement and query full-text indexes.

Log Shipping Procedures
Used to configure and manage log shipping.

OLE Automation Procedures
Allows standard OLE automation objects to be used within a standard Transact-SQL batch.

Replication Procedures
Used to manage replication.

Security Procedures
Used to manage security.

SQL Mail Procedures
Used to perform e-mail operations from within SQL Server.

SQL Profiler Procedures
Used by SQL Profiler to monitor performance and activity.

SQL Server Agent Procedures
Used by SQL Server Agent to manage scheduled and event-driven activities.

System Procedures
Used for general maintenance of SQL Server.

Web Assistant Procedures
Used by the Web Assistant.

XML Procedures
Used for Extensible Markup Language (XML) text management.

General Extended Procedures
Provides an interface from SQL Server to external programs for various maintenance activities.

You can create your own system-stored procedures by following the guidelines outlined above. But, even though it is possible to modify an existing system sproc, it is better to name it with another name than to destroy the system version.

Dynamic Queries are created and executed within a stored procedure, and are built typically by passing in text parameters and creating a text SQL string. Then the string is executed using the form EXEC (@createdstring). Dynamic query plans are not stored in cache, and local variables created in the dynamic query are not available after the query is executed. To save the query plan, instead of the keyword EXEC, use sp_executesql. Also, with sp_executesql local variables can be used both as INPUT and as OUTPUT parameters.

Autoexec procedures, called autostart procedures can be made by invoking the system stored procedure
sp_procoption procedurename, startup, true

Extended Store Procedures
Extended stored procedures are auxiliary stored procedures created in a DLL using C++. They are prefixed with xp_, and stored in the Master database. When called from an application database, they bust be fully referenced, using the Master..xp_procname form. Before you can invoke it, you must register the DLL with SQL Server using the syntax:

sp_addextendedproc [@functname=] 'procedure', [@dllname=] 'dll'

Resources:
Information Getting Started with Sybase

This resource discusses Sybase database management system.

Information: Accessing Stored Procedures

This resource gives insightful information on accessing stored procedures.

Metro NY / NJ SQL Server Consultants
We specialize is custom database software. Call us for a free consultation (973) 635 0080 or email us at paladn.com

Author: Chris Kemp
 
Author Bio:

This article can be searched using: automotive diagnostic software, automotive service software, automotive crm software
 
 
 

Related Articles

 
More Trucks On the Road Than Ever!
 
Your Car Battery: How to Clean It
 
Never Remove The Radiator Cap On A Hot Engine - It Could Send You To The Hospital
 
Driving Tips - Prepare For The Road
 
Newest Volvo Car Designers from Taiwan
 
Fuel Economy Guidelines Change and Nobody's Happy For Now
 
How the Use of Steel Containers is Impacting on the Freight Shipping Industry
 
Chat Software
 
Avoid Buying Gasohol and Avoid Buying Gas from a Just Replenished Gas Station
 
2007 Nissan Versa: Gen "Y", Take Notice
 
 
 
 
 

Do More than Just Light Up Your Rear

Driving during the stark of night could prove to be not a danger for you if your vehicle has been pr ... - Joe Thompson
 

You Are Significant

You are a significant person in this world. You may not be that popular, talented or intelligent lik ... - Clive Green
 

Growing Our Bio Fuel and Bio Diesel; Challenges on the Road Ahead

Growing a percentage of our fuel makes sense from a philosophical standpoint and should be implement ... - Lance Winslow
 
 

Ford Escape Hybrid Technology Clinic comes to Sacramento

Ford Motor Company along with the representatives from the City of Sacramento will also host a techn ... - Jason Moore
 

The Basics of Lawn Tractors

This article gives you the details about small tractors known as lawn tractors, discusses the price ... - Andrew Caxton
 
 
Site Home -> Security & Privacy -> ToS
© 2006-2008 www.digestdot.com All Rights Reserved Worldwide.