Page 1 of 1

Empty password for connection

Posted: Thu 27 Sep 2007 14:54
by vmo
Hi,

I'm still testing ORADirect .net (Mobile).
Is it possible to have an empty password for the Oracle Database connection ?
I filled IP address, sid, user and left password blank on my oracleConnection object.

When I try to connect (oracleConnection1.Open()), I have a error because my password is empty.

Thanks for support.
Vincent

PS: using Oracle 10g, c#, VS2005

Posted: Thu 27 Sep 2007 16:16
by Alexey
If you want to use OS authentication mode, you should not set username or password in your connection string. It ought to look like this:

Code: Select all

oracleConnection1.ConnectionString = "Data Source=oracle;";