Ok I'll suppose that you are sure from the user name and password, and that you have gave this user the authority to use this data base...
first try this code instead (just to make sure :)
string connlog = "Data Source=.; Initial Catalog=parking_sysBASE; User ID=esuser; password=ReDraw;";
string qconn = " SELECT ime, FROM OPERATORI WHERE Username = '" + txtUsername.Text + "'";
sqlConnection connw = new sqlConnection(connlog);
connw.Open();
sqlCommand cmd1 = new sqlCommand(qconn);
sqlDataReader Reader = cmd1.ExecuteReader(CommandBehavior.CloseConnection );
connw.Close();
if it worked, use it :) .. if it did not.. check the authority for the 'esuser' on your database ;)
Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
|