Empty password for connection

Empty password for connection

Postby vmo » Thu 27 Sep 2007 14:54

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
vmo
 
Posts: 7
Joined: Mon 10 Sep 2007 15:15

Postby Alexey » Thu 27 Sep 2007 16:16

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;";
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for Oracle