Is connecting to two SQL databases at the same time possible ? I mean from one database I am reading records and comparing them with some data like email address and based on the decision that whether that email address exists in the database or not I am storing a new record in another database.
Is this kind of double operation possible ?
I am connecting with databases using SqlConnection and SqlCommand statements of C#.net
Thank you.
Yes this is possible.
You can either return a value to your asp.net application, and then connect to another database like:
Where
Conn1andConn2are 2 differentSqlConnection‘s connecting to 2 different databases.Or this can be done at SQL end like: