Results 1 to 4 of 4

Thread: How to create, deploy and use DB2 stored procedure

  1. #1
    Join Date
    May 2008
    Posts
    248

    How to create, deploy and use DB2 stored procedure

    I have somehow managed to take the db2 database from my colleague, but am very literally new to the stored procedure of any of the database, and we have stored procedure in our syllabus and there anyhow I have to managed it, So please provide me information about how to create, deploy and use DB2 stored procedure.

  2. #2
    Join Date
    Feb 2006
    Posts
    172

    Re: How to create, deploy and use DB2 stored procedure

    A stored procedure runs on the database server. If a procedure is encapsulated logic that can be invoked from within your application, then a stored procedure is simply a procedure that is stored on the database server. A client application can call the stored procedure which then performs the database accessing without returning unnecessary data across the network.

  3. #3
    Join Date
    Apr 2008
    Posts
    193

    Re: How to create, deploy and use DB2 stored procedure

    Grouping SQL statements together can save on network traffic. One way is (a) to SELECT the record to see if the customer exists, (b) to UPDATE the record if it does, and (c) to INSERT a new record if it does not. Grouping SQL statements results in two trips across the network for each group of statements, resulting in better performance for applications.

  4. #4
    Join Date
    Oct 2008
    Posts
    117

    Re: How to create, deploy and use DB2 stored procedure

    DB2 has offered an ever improving support for developing and operating stored procedures. DB2 expands on the definition of a stored procedure by allowing you to code them in just about any language you may need. DB2 gives you two different kinds of stored procedures. The major difference between a SQL procedure and an external procedure is that SQL procedures are, obviously, written in SQL. This means that the logic for the procedure is defined within the SQL procedure body itself.

Similar Threads

  1. Stored procedure in MySQL database
    By Ameeryan in forum Software Development
    Replies: 5
    Last Post: 04-03-2010, 10:31 PM
  2. Use Of Stored Procedure in SQL Server
    By technika in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 11:24 AM
  3. What is sqlca Informix stored Procedure
    By Bosch in forum Software Development
    Replies: 3
    Last Post: 13-08-2009, 01:57 PM
  4. How to Write stored procedure in SQL Server
    By Benito in forum Software Development
    Replies: 3
    Last Post: 03-08-2009, 12:29 PM
  5. How to call stored procedure using do while Loop
    By AK_Chopra in forum Software Development
    Replies: 3
    Last Post: 29-05-2009, 01:47 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,714,116,395.49224 seconds with 16 queries