Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to connect c# visual studio 2008 to Oracle with ADO.NET?
thanks for the answer.

Answer Posted / bollu praveen yadav

First design the form in c# as per requirement and now you
want to retrieve data from oracle to C# using ADO.net then
follow these steps:

for example you want to retrieve emp table from oracle
database using ado.net

using system.data;
using system.data.oledb;
sqlconnection cn=new sqlconnection("user id=scott;
password=tiger; provider=msora.1; database=master;
datasource=server):
sqldataadapter da=new sqldataadapter("select *from emp",cn);
dataset ds=new dataset();
da.fill(ds, "d");
datagridview1.datasource=ds;


This way u can get the emp data from oracle to c# using
ado.net coding..

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to update and insert from datagridview at run time in excel database?

3135


Give me some tips in c#?

2472


how to insert fname,lname,designation values into database while click on the submit button using windows authentication mode?

2489


How we work on N tire architecture in asp.net Please give me Examle...

17850