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 would u connect to database using .NET?

Answer Posted / vivek

using Connection object
SqlConnectin cn=new SqlConnection();
from .net we can connect to any backend with middlleware
and direct connections.
middleware means ODBC,OleDb,ISAM etc.
we can directly connect to Sqlserver and Oracle
we can connect to sql server in 4 ways
1)direct connection
2)ODBC way
3)OleDb way
4)Express way
for oracle we can connect in 3 ways.
1)direct connection
2)ODBC way
3)OleDb way

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a datareader and a dataset?

1027


What are the various methods provided by the DataSet object to generate XML?

999


What is ado.net and its architecture?

1166


How to bind the controls(best practice) comboboxes to the data in the dataset?

1041


What is difference between entity framework and ado.net?

927


What are the main differences between classic ado and ado.net?

1017


Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

1145


How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

1034


Explain all the classes those are used for database connections between sql server and asp.net?

998


Where is adodb dll located?

962


What is the difference between SqlCommand and SqlCommandBuilder?

1071


Is it possible to load multiple tables in a Dataset?

1070


Define different execute methods of ADO.NET command object ?

1082


describe the dataset object in ado.net.

952


What do you know about ado.net's objects?

997