Contact
In case you are looking for any help on any technical issues or advice regarding web site optimization or any other J2EE problems do feel free to send an email or write a comment on my blog. I’ll try my best to respond back as quickly as possible.
Email: ninad.gawad(at)gmail.com
Join My Network : My LinkedIn Profile
Twitter: My Tweets
Shelfari : My Book Shelf



Damn… I just dont belive this.. I was looking for thi Character decoding error on google ad found your blog for the solution
Thanks a lot.
Hi,
I am Sanket. I have a small issue.
I am trying to create a java application with JDBC ODBC connection with Microsoft Access as database. While configuring the MS Access database from Administrative Tools –> Data Sources (ODBC), I have provided the username and password for the database.
In the statement, DriverManager.getConnection( ), even if I do not provide username and password or if I provide incorrect username and password, the program still accesses the database. How do I force the java program to use the username and password for the database which I have specified??
Thanks in advance,
Hi Sanket,
It first site it looks like you have not set the password for the Access database. I am adding a sample code to test your database and steps to Set database password.
best luck.
1. Code File to test JDBC-ODBC Connection (Database: testDB.mdb). Click Here
2. Now Open the Microsoft Access. Click Ope > Select the MDB File. (Now Click on Drop down Icon next to Open & Select Open Exclusive. ). Snapshot
3. Once the DB is open Go to > Tools > Set Database password. Set the password and verify.
Now the things should work as you want
Cheers,
Ninad
Hi Ninad,
Thanks for your help. It worked. Now I have one more doubt. I can only set the password for Access. How do I set username? DriverManager.getConnection works for any username and specified password.
Can I assign multiple usernames and passwords to the same database? Let’s say, I have 5 different pairs of username and password. Can I open my database if the username and password match one of these pairs and print an error message if the username and password do not match any of the pairs?
Thanks in advance,
– Sanket
Hi!
We can post your ad with different subjects and different body with your website link to forums and Blogs related to your website. Such ad will be online 24/7 promoting your website forever.
We can bring hundreds of new visitors to your site as well as see your site jump in google pagerank. Your website will be on first page of Google for a particular keyword or phrase. All of our processes use the most ethical “white hat” advertising.
Our posting ad service techniques will not get your website banned or penalized because we can post a limited number of your ads per day, per week or per month. It is a proven smart advertising service that works and all our customers are 100% satisfied and 85% of them are regular customers.
We will post your ad as per your specifications and send you a log file of your ad URL links so that you can click on any of them and make sure that we did our work.
http://manoman.135.it – Try our service FREE enjoy!
The best and smartest way to promoter your lonely website on the Internet