Title: different behaviors in application and servlet.
hi,
if u are using access when you have sent the password, the default user is
admin. ok
srini
----- Original Message -----
From: Andreas
Sent: Tuesday, November 30, 1999 5:28 AM
Subject: Re: different behaviors in application and servlet.

Your codee should look something like this:
 
con = DriverManager.getConnection("jdbc:odbc:RoomBookDB", "andreas", "stellatos");
 
You either set up a pwd and username or you set up nothing and the code goes like this:
 
con = DriverManager.getConnection("jdbc:odbc:RoomBookDB", "", "");
 
According to my humble opinion you cannot have just a password in the brackets...
 
I hope it helps,
 
Andreas Stellatos
 
-----Original Message-----
From: saleem.arif <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 30 November 1999 10:21
Subject: different behaviors in application and servlet.

Hello there,

When I wrote following statement in an application, this worked fine. Now I am using same statement in servlets and getting SQL  exception, that is, Too few parameters. Expected 1.

con = DriverManager.getConnection("jdbc:odbc:customer","","customer");

I am using JSDK2.0 and MS Access as a backend database.
Can any body tell me, why the two different behaviors.

Bye,
Saleem Arif.

Reply via email to