Hi All,
Below is the query used to find the mirroring status in sql server using t-sql
select * from sys.database_mirroring (nolock)dm
inner join sys.databases(nolock)db
on db.database_id=dm.database_id
and name=’AdventureWorks’
where adventure works is the name of database
Example:
Please check and let us know if you have any doubts.
Thanks for viewing.
Regards,
Chaitanya,
Webiste : https://mssqlbuzz.wordpress.com/
To Send Mail : mssqlbuzz
