MObile connection string in oracle

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Posts: 5
Joined: Fri 19 May 2006 07:13

MObile connection string in oracle

Post by katsifos » Fri 19 May 2006 07:19

i am devaloping a pda application with the 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?


Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by 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.

Post Reply