Connection of two DataAdapters at same time
Is it possible to connect two DataAdapters of same data source with the use of single connection at the same time?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Feb 25, 2012, 4:08 AM EST
There is a technology in ado.net 2.0 called MARS usinng Mars in connection string we can do it.
For eg:
cn.ConnectionString = "server=(local); database=employee; integrated security=sspi; MultipleActiveResultSets=True";
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 28, 2012, 12:34 AM EST
add multipleactiveresultsets = true in web config.
please refer.
http://www.sqlteam.com/article/multiple-active-result-sets-mars
hope this help.