This is what I have , I dont think posting 3 -4 classes will make you all more confused.
I have a class to create connections to the database and returns a thread , then this is used to query to database.
Now the issue is when I try to query the DB the connection string is not exact,seems there is some mistake somewhere.
I think my approach is wrong . Should I send my code ?
I think there is definitly resource sharing here , Use another class or variable name if the DB s different
I think the problem is in the connection.
There could be many couses:
1)The driver is not correct
2)username and password.
3)Loading the driver..
There are more things to test...will be better if u write us the code that u use to make the connection.