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...

If we want to connect to many databases in dataaccess layer
such as MSAccess,Sql server,oracle means not to a particular
database depends on condition we have to connect to
appropriate database in this scenario if we without changing
code Ho wdo you handle this situation?

Answer Posted / ganesh

Create appropriate provider at run time(use factory
patterns) based on some configurations setting (probably a
XML file).This will allow user to decide providers
dynamicallly and enable connecting to whatever database he
wants

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a dataview?

921


What is the difference between sqldatareader and sqldataadapter?

915


Is ado.net an orm?

906


What is a non query?

885


What is an example of ordinal data?

1046


What is the use of adodc?

939


What is the difference in an abstract class and an interface?

946


What is meant by executenonquery?

887


How can we serialize the dataset object?

951


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

1025


What is connection pooling and what is the maximum pool size in ado.net connection string?

900


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

1014


Define bubbled event?

868


How can we add/remove row's in "datatable" object of "dataset"?

969


What is a control toolbox?

902