RE: Servlet and JDBC and SQL Server
From: Carb Simien [MSFT] (CarbinoS_at_online.microsoft.com)
Date: 08/17/04
- Next message: Carb Simien [MSFT]: "RE: Configure JDBC Connection Pool size"
- Previous message: Carb Simien [MSFT]: "RE: JDBC and SQL Server from Microsoft; Error"
- In reply to: Patrick Hennig: "Servlet and JDBC and SQL Server"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 17 Aug 2004 18:11:41 GMT
--------------------
| From: "Patrick Hennig" <patrick_hennig@licht-concept.de>
| Subject: Servlet and JDBC and SQL Server
| Date: Mon, 16 Aug 2004 11:42:24 +0200
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Message-ID: <uoOyaW3gEHA.3928@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.sqlserver.jdbcdriver
| NNTP-Posting-Host: p508c11bb.dip0.t-ipconnect.de 80.140.17.187
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.sqlserver.jdbcdriver:6200
| X-Tomcat-NG: microsoft.public.sqlserver.jdbcdriver
|
| Hi,
|
| Iīm now trying to connect to an SQL Server.
|
| If I start this in dos with this command
| java -cp .;.\msbase.jar;.\msutil.jar;.\mssqlserver.jar connect
|
| it function.
|
| But I want to connect in a servlet.
| But I canīt start it like this:
| java -cp .;.\msbase.jar;.\msutil.jar;.\mssqlserver.jar connect
|
| where must I specify the jar files.
|
| Now I have write it also to the CLASSPATH, but is this the solution?
| I donīt think so.
|
| Can somebody say me how I could connect in a Servlet.
|
| Sincerly Patrick Hennig
|
|
|
When executing JDBC programs, you have the option of either specifying the
CLASSPATH in the command (-cp <path>) as you described, or you can set the
CLASSPATH environment variable. If you are using an application server,
then it should document where and how you must set the CLASSPATH so that it
knows where to find the JAR files.
Carb Simien, MCSE MCDBA MCAD
Microsoft Developer Support - Web Data
Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
Are you secure? For information about the Strategic Technology Protection
Program and to order your FREE Security Tool Kit, please visit
http://www.microsoft.com/security.
- Next message: Carb Simien [MSFT]: "RE: Configure JDBC Connection Pool size"
- Previous message: Carb Simien [MSFT]: "RE: JDBC and SQL Server from Microsoft; Error"
- In reply to: Patrick Hennig: "Servlet and JDBC and SQL Server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|