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 / alok saxena

Hey!

You are giving clue in your question.

First We have to use select case option, In each case we
have to use respective database connection,pwd,

Mind you must have to select approrpiate provider e.x. Sql
u must use System.Data.Sql

Wish u a good luck

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of using ado.net?

511


What is concurrency? How will you avoid concurrency when dealing with dataset? (One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid the problem?)

577


What is the default provider in ado.net?

509


What are the ado.net objects?

510


What is disconnected data?

578






What is Serialization in .NET? what are the types of Serialization?

544


What is disconnected architecture in ado.net?

497


Which object needs to be closed?

1738


How to find the given query is optimised one or not?

502


What is dataset and datatable in ado.net?

497


What is serialization and de-serialization in .net?

489


Explain the differences between oledb sql server, oledbdotnet provider?

550


What connected data?

491


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

578


How to connect and retrieve data from database using dataset

529