Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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();
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# loop 2 time tables 
Csharp :: convert getdate to ist c# 
Csharp :: C# foreach loop async but wait at end 
Csharp :: verifyusertokenasync password reset token 
Csharp :: redis cache repository .net 
Csharp :: C# order a sorted list by key 
Csharp :: unity collision.impulse 
Csharp :: serialize xml as array C# 
Csharp :: how to check if a file is running in c# 
Csharp :: unity how to find the largest value out of 2 numbers 
Csharp :: change skybox color unity 
Csharp :: c# .net core entity framework one to many 
Csharp :: Ignore case string linq c# 
Csharp :: c# get file author 
Csharp :: how to make a system to check if i see certain object in unity 
Csharp :: unity for loop array 
Csharp :: Count the Number of Duplicate Characters 
Csharp :: How to create a new object instance from a Type 
Csharp :: if statement in razor using "?" and ":" 
Csharp :: unity script template folder 
Csharp :: c# bool list count true 
Csharp :: Generic Stack 
Csharp :: except method c# 
Csharp :: c# read file stream 
Csharp :: dbset 
Csharp :: linq syntax 
Csharp :: string.format() c# 
Csharp :: c# delete object 
Csharp :: vb.net read registry key as string 
Csharp :: c#, get a embedded resx file 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =