Data mirroring refers to the real-time operation of copying data, as an exact copy, from one location to a local or remote storage medium. In computing, a mirror is an exact copy of a dataset. Most commonly, data mirroring is used when multiple exact copies of data are required in multiple locations.
Microsoft SQL Server includes several technologies that not only provide protection for your databases, but also allow you to move data from one location to another for other purposes. Database Mirroring is one of those technologies.
You have to follow the following steps as shown in attached file :