Exporting a database is very important in cases where DBA or developer or any user has to access it on any other location.
Example: Working on any database at office or college or at home, if you want to export and open that database so that you can use later on, you need to understand the steps to export the database.
Here are the steps stating the procedure of exporting a database,
Firstly, go to SQL Server Management Studio, right click on your database and select properties. Now select File menu,

In File option, you need to get the Path of database saving location with files name saved as .MDF and .LDF files.
Second, Open the path location as given in above pic and copy both the .mdf and .ldf files of database that you want to export.

Third, before copying .mdf file and .log file on your system please Stop services of your SQL Server,
To Stop services: Search Services in your system search option, then select your Sql Server Name and right click on its Properties and click Stop option.
Example

Fourth, now the database files (.mdf and .ldf) are saved on your system. Just copy them to other places through pendrive or email or any other way to export the database to destination system.
Example

Fifth, Now on your destination system just copy or cut and paste both the .mdf and .ldf database files in to the MS SQL Server path location on your system:

Sixth, Open your SQL Server Management Studio 2014 of destination system, here right click on Databases folder and select Attach option.

When you clicked Attach, a window will open, In this just click on Add button, select the database .mdf and .ldf files and add it.

Just Refresh your databases, You can see that in below pic the database Trainee is exported from other system, now we can access its objects.


Onkar SharmaPosted Aug 15, 2020, 10:47 AM
Very Well explained. Thanks for sharing with us...
Satyaprakash SamantarayPosted May 1, 2017, 3:14 AM
In real time no one follow up by using this process , everyone using by taking script of schema of objects and data..... So, kindly tell this process why we use in real time.... By the way mdf and ldf files more big in size but script very less size compare to mdf and ldf.
SubashPosted Sep 7, 2016, 7:59 AM
Great one
Santhakumar MunuswamyPosted Dec 31, 2015, 10:37 AM
Thanks for nice article
Yashwant VishwakarmaPosted Dec 31, 2015, 5:37 AM
Nice article, thanks for sharing !!
Humayun Kabir MamunPosted Dec 31, 2015, 3:45 AM
Nice...
Sibeesh VenuPosted Dec 31, 2015, 3:19 AM
Nice Share
Ravi PatelPosted Dec 31, 2015, 2:38 AM
nice share
Ankur MistryPosted Dec 31, 2015, 2:33 AM
Nice Article
Abhay ShankerPosted Dec 31, 2015, 2:13 AM
Nice Share
Raja TPosted Dec 31, 2015, 2:06 AM
Nice, thanks for sharing