SQL server Mirroring Status through TSQL

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


Please check and let us know if you have any doubts.

Thanks for viewing.



Webiste : https://mssqlbuzz.wordpress.com/

To Send Mail : mssqlbuzz


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: