All Examples  This Package

Class examples.jdbc.mssqlserver4.ProcedureTests

java.lang.Object
   |
   +----examples.jdbc.mssqlserver4.ProcedureTests

public class ProcedureTests
extends Object
This example shows how to create, call and remove a stored procedure from a Microsoft SQL Server.

To set up this example:

  1. Set up your development shell as described in Package examples.jdbc.mssqlserver4.

  2. Change the database URL, login, and password connection parameters to correspond to your Microsoft SQL Server configuration. The example creates a stored procedure, so make sure your account has privileges to do that. If you need more help, check the section on connecting to a database in the Developers Guide, Using WebLogic jDriver for Microsoft SQL Server.

  3. Compile this example by executing the following command in your development shell:

    $ javac -d c:/weblogic/mssqlserver4/classes ProcedureTests.java

  4. Run this example by executing the following command in your development shell:

    $ java examples.jdbc.mssqlserver4.ProcedureTests


Constructor Index

 o ProcedureTests()

Method Index

 o main(String[])

Constructors

 o ProcedureTests
 public ProcedureTests()

Methods

 o main
 public static void main(String args[])

All Examples  This Package