Hi,
SQL
I have one server 'A'.
2 databases - 'AA' , 'BB'
In 'AA' database a procedure will be executed which will connect to database 'BB'. It will take the path and will connect to another database and will get the data from another database into the 'AA' database.
The problem is whenever the procedure is trying to connect to 'BB' database it is giving the error 7391.
If the select query is there without begin tran then it connects to the database 'BB' but if it is executed withing BEGIN TRAN then it gives 7391 error .
Please somebody help.