Dear all,
I am making MS Access database connection with my java program.
As i know that in Connection Following things are required:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:DSNname","Username","password");
Now i have created System DSN in Odbc data connection and also i have attached database with that DSN.
While creating DSN, i also provide username and password in configuration.
but now my problem is,Even if i am not passing username and password in getConnection() method, it will insert data into database.
So where's the problem?
How can i put username and password, so that without it my data should not be inserted in my database.
i am using MS-Access database right now.
please reply as soon as possible.
Thanks.