All Examples This Package
Class examples.jdbc.mssqlserver4.login
java.lang.Object
|
+----examples.jdbc.mssqlserver4.login
- public class login
- extends Object
This simple example shows the alternatives for making a
JDBC connection to a MSSQLServer instance.
To set up this example:
- Set up your development shell as described in Package examples.jdbc.mssqlserver4.
- Change connection parameters to correspond to your Microsoft SQL
Server configuration. (Change the hostname and port number used to connect to your
SQL Server installation.) If you need more help, check the section on
connecting to a database in the Developers Guide, Using WebLogic jDriver for Microsoft SQL Server.
- Compile this example by executing the following command in your development shell:
$ javac -d c:/weblogic/mssqlserver4/classes login.java
- Run this example by executing the following command in your development shell:
$ java examples.jdbc.mssqlserver4.login
-
login()
-
-
main(String[])
-
login
public login()
main
public static void main(String argv[]) throws Exception
All Examples This Package