Results 1 to 6 of 6

Thread: What is SQL Stored Procedures?

  1. #1
    Join Date
    Nov 2009
    Posts
    680

    What is SQL Stored Procedures?

    Hello, I have recently started to learn the SQL Database Language and while learning it I am not able to understand the concept of the Stored Procedures. I have tried to learn it, but I am not getting the concept behind it. So, if you are having any knowledge about it, then please provide help to me to know the exact concept behind the SQL Stored Procedures.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: What is SQL Stored Procedures?

    When any type of group of Transact-SQL statements compiled into a single execution plan then it is called as stored procedure. If you are making use of the Microsoft SQL Server 2000 then your stored procedures must return data in four ways below:
    • Output parameters
    • Return codes
    • A result set
    • A global cursor

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What is SQL Stored Procedures?

    Hi, if you are making use of the stored procedure in your sql then the Benefits of Stored Procedures are as below:
    • Precompiled execution
    • Reduced client/server traffic
    • Efficient reuse of code and programming abstraction
    • Enhanced security controls

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: What is SQL Stored Procedures?

    A stored procedure is a group of SQL statements that form a logical unit and perform a particular task, and they are used to encapsulate a set of operations or queries to execute on a database server. For example, operations on an employee database (hire, fire, promote, lookup) could be coded as stored procedures executed by application code. Stored procedures can be compiled and executed with different parameters and results, and they may have any combination of input, output, and input/output parameters. This simple stored procedure has no parameters. Even though most stored procedures do something more complex than this example, it serves to illustrate some basic points about them.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is SQL Stored Procedures?

    Hello, if you want to create a stored procedure then you must need to make use of the query as given below:
    Code:
    CREATE PROCEDURE <procedure name>
    @location <data-type>(<size>)
    AS
    SELECT <field name>.......
    FROM <Table name>
    WHERE <condition if any>

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    Re: What is SQL Stored Procedures?

    Hello, if you are having knowledge of programming language then the Stored procedures in SQL Server are same as procedures in other programming languages which can perform the following for you:
    • It can simply able to get the parameters provided by the input and can return you different values as a output.
    • It can also contain the programming statements which have the ability to perform the operations on the database. It can also call other procedures.
    • It can provide you success or failure of the procedure by calling procedure.
    • It can provide you reason for your procedure execution failure.

Similar Threads

  1. Extracting stored procedures
    By Maal-Gaadi in forum Software Development
    Replies: 3
    Last Post: 29-12-2010, 07:29 PM
  2. Using stored procedures and stored functions in MySQL
    By Adiran in forum Software Development
    Replies: 6
    Last Post: 14-12-2010, 01:54 AM
  3. Calling Oracle Stored Procedures with PHP
    By Landan in forum Software Development
    Replies: 5
    Last Post: 12-02-2010, 05:37 PM
  4. How to execute Stored procedures in Hibernate?
    By NegiRaj in forum Software Development
    Replies: 3
    Last Post: 10-08-2009, 11:54 PM
  5. Replies: 3
    Last Post: 03-08-2009, 09:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,557,189.22339 seconds with 17 queries