Horje
conncet oracle database in c# visual studio Code Example
conncet oracle database in c# visual studio
string oradb = "Data Source=ORCL;User Id=hr;Password=hr;";
OracleConnection conn = new OracleConnection(oradb);  // C#
conn.Open(); 
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandText = "select department_name from departments where department_id = 10";
cmd.CommandType = CommandType.Text; 
OracleDataReader dr = cmd.ExecuteReader();
dr.Read();
label1.Text = dr.GetString(0);
conn.Dispose();




Csharp

Related
C# unary operator Code Example C# unary operator Code Example
add buttons to taskbar thumbnail WPF Code Example add buttons to taskbar thumbnail WPF Code Example
c# core linq savechanges invalid column name error while adding but not while updating Code Example c# core linq savechanges invalid column name error while adding but not while updating Code Example
why to make private fields readonly in c# Code Example why to make private fields readonly in c# Code Example
accord.io read .mat file Code Example accord.io read .mat file Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11