Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

We have 8 databaes and one application. We have to fetch details from or insert to database which is selected in a dropdownlist.
We have the below two options to connect:
1. Always connect to singale database and then use selected DBNAME.DBO.TableName to fetch the data
2. Directly connect to the particular selected database snd fetch the records.

Could anyone suggest which is the correct way of connecting to a database?

Regards
Willington
Posted
Comments
Prakash Thirumoorthy 25-Feb-13 1:37am    
in your project, if any necessary to get records from more than one database at single query?

1 solution

hi,
First one is best one. if u go with second one, u may have use first option. For an example, you need get record set from db1 & db2, you have to use again first option only. I will suggest First one.

Regards,
Prakash.T
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900