Page 1 of 1

MObile connection string in oracle

Posted: Fri 19 May 2006 07:19
by katsifos
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

Posted: Fri 19 May 2006 09:09
by Alexey
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.