MObile connection string in oracle

MObile connection string in oracle

Postby katsifos » Fri 19 May 2006 07:19

Hello
i am devaloping a pda application with the oradirect.net 2 mobile.
My qyestion is:
When i want to create a new connection
i use
the syntax :
OracleConnection con = new OracleConnection();

con.ConnectionString = "";
con.UserId = "scott";
con.Password ="tiger";
con.Port = 1521;
con.Server = "localhost";
con.Sid = "orcl";
Is it possible to add all these parameters to the ConnectionString and ommit the others?
And 2nd q is :
is it possible to use a runtime connnection string in the configurations file
app.config ? or is there an other method?

REgards
Aris
katsifos
 
Posts: 5
Joined: Fri 19 May 2006 07:13

Postby Alexey » Fri 19 May 2006 09:09

1. It is possible to add all those parameters to the ConnectionString and ommit the others. Just correct the string
Code: Select all
      con.Server = "localhost";

(use IP address).
2. OraDirect .NET doesn't provide any additional options in storing connection strings in the configurations files. Regarding app.config file refer to MSDN.
Alexey
 
Posts: 2756
Joined: Mon 13 Mar 2006 07:43


Return to dotConnect for Oracle