how can i access multiple databases in dataaccess layer to c# .net applications?
sivak
-7
Junior Poster
Recommended Answers
Jump to PostThat depends on how your DAL is implemented but you can merely switch out the connection string which will connect you to another database.
This queries two database:
private void simpleButton1_Click(object sender, EventArgs e) { const string query = "Select * from sysobjects"; string connStr1 = …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.