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
MObile connection string in oracle
1. It is possible to add all those parameters to the ConnectionString and ommit the others. Just correct the string
(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.
Code: Select all
con.Server = "localhost";
2. OraDirect .NET doesn't provide any additional options in storing connection strings in the configurations files. Regarding app.config file refer to MSDN.