Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.databases > #62
| From | "=?ISO-8859-1?Q?Arne_Vajh=" <=?iso-8859-1?q?arne_vajh=@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: java connect to MSSQL |
| Message-ID | <481ef945$0$90266$14726298@news.sunsite.dk> (permalink) |
| Newsgroups | comp.lang.java.databases |
| References | <iSzTj.116130$Cj7.107115@pd7urf2no> |
| Date | 2011-04-27 15:21 +0000 |
| Organization | TDS.net |
To: comp.lang.java.databases
a wrote:
> I am not able to load the driver for MSSQL2000 server, even I have put all 3
> jar files, mssqlserver.jar, msutil.jar, msbase.jar in lib folder and have
> tried to restart the tomcat.
> I got ClassNotFoundException. How should I set the Class.forName?
> My code,
>
> public DBConnect(String host, String dbname, String username, String
> password)
> {
> //Load Drv
> try
> {
> Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
Try:
com.microsoft.jdbc.sqlserver.SQLServerDriver
for 2000 (the one you use are for 2005).
Arne
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.databases | Previous | Next — Previous in thread | Find similar
java connect to MSSQL2k "a" <a@THRWHITE.remove-dii-this> - 2011-04-27 15:21 +0000 Re: java connect to MSSQL "=?ISO-8859-1?Q?Arne_Vajh=" <=?iso-8859-1?q?arne_vajh=@THRWHITE.remove-dii-this> - 2011-04-27 15:21 +0000
csiph-web