I'm trying to access data from two different databases inside a transactionscope. But while executing any query on the second database , i get "The operation is not valid for the state of the transaction." error
using(TransactionScope scope=new TransactionScope())
{
Insert();//Inserts to database A
Select();//Selects from database B - error while executing this statement
}
Both the databases exist in the same server.