ARTICLE
Reader Level:

Description of the Article

A Simple program to show connecting to an oracle database.

Source Code:

/********************************/
//Program Name : ADO Connection to Oracle
//Description : A Sample program to connect to the oracle database
//Created On : 01 May 2001
//Created By : Ravi Shankar Venkatarajalu
/********************************/
using System;
using System.Data;
using System.Data.ADO;
class OracleTest
{
static void Main()
{
//UID - User Id
//PWD - Password
//Server - Your Service name
//Using Microsoft ODBC for Oracle DSN-Less
//const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa";
//Using Microsoft OLEDB Provider for Oracle
const string strConn = "Provider=MSDAORA.1;
Data Source=oracle_db;User ID=scott;Password=tiger";
//Using DSN Connection
//const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ;
const string strSQL = "Select * From EMP";
try
{
DataSet ds = new DataSet("EmployeesSet");
ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn);
myCommand.FillDataSet(ds,"Buyer");
Console.WriteLine(ds.Xml);
}
catch(ADOException e)
{
Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message);
}
}
}

Login to add your contents and source code to this article
Article Extensions
Contents added by loga nathan on Jun 01, 2012
lullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullai
post comment
     

Description of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article Extensions

Posted by loga nathan Jun 01, 2012

Description of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article ExtensionsDescription of the ArticleA Simple program to show connecting to an oracle database.Source Code:/********************************/ //Program Name : ADO Connection to Oracle //Description : A Sample program to connect to the oracle database //Created On : 01 May 2001 //Created By : Ravi Shankar Venkatarajalu /********************************/ using System; using System.Data; using System.Data.ADO; class OracleTest { static void Main() { //UID - User Id //PWD - Password //Server - Your Service name //Using Microsoft ODBC for Oracle DSN-Less //const string strConn = "Provider=MSDASQL;DRIVER={Microsoft ODBC for ORACLE};UID=scott;PWD=tiger;Server=fnqa"; //Using Microsoft OLEDB Provider for Oracle const string strConn = "Provider=MSDAORA.1; Data Source=oracle_db;User ID=scott;Password=tiger"; //Using DSN Connection //const string strConn ="DSN=oracle_dsn;UID=scott;PWD=tiger" ; const string strSQL = "Select * From EMP"; try { DataSet ds = new DataSet("EmployeesSet"); ADODataSetCommand myCommand = new ADODataSetCommand(strSQL,strConn); myCommand.FillDataSet(ds,"Buyer"); Console.WriteLine(ds.Xml); } catch(ADOException e) { Console.WriteLine("Exception Occured :{0}",e.Errors[0].Message); } } }Add your contents and source code to this article Article Extensions

Posted by loga nathan Jun 01, 2012

lullulullai

Posted by loga nathan Jun 01, 2012

lullullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullai

Posted by loga nathan Jun 01, 2012

lullullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullailullulullai

Posted by loga nathan Jun 01, 2012
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.