المشاركات

How to Import and Export SQL Server Database?

Skip to content
  • zizoraobfq Avatar
     My Profile Edit Profile
     My Courses Go Premium
     Logout
  • Home
  • Saved Videos
  • Courses
  • GBlog
  • Puzzles
  • What's New ?
 

Related Articles

How to Import and Export SQL Server Database?

  • Last Updated : 14 Feb, 2022

SQL Server is very popular in Relational Database and it is used across many software industries. In MS SQL Server, two sorts of databases are available.

  • System databases
  • User Databases

In this, we will learn to export and import SQL Server databases using Microsoft SQL Server. Exporting and Importing stands as a backup plan for developers.

Step 1: Open the  “Microsoft SQL Server” Click on “File”, “New” and select “Database Engine Query”.

Step 2: Create a Database

Advertisement

Query :  

CREATE DATABASE college;

Output:

Step 3: Select the newly created table “college”.

Query : 

USE college;

Output:

Step 4: Creating a Table 

Query :

CREATE TABLE students( id INT NOT NULL PRIMARY KEY,
name VARCHAR(300) NOT NULL , reg _no INT NOT NULL ,
semester INT NOT NULL  );

Output:

Step 5: Insert the Records 

Query : 

INSERT INTO students VALUES
(1,'priya',31,3),(2,'keerthi',12,1),
(3,'rahul',29,2),(4,'reyansh',38,3),
5,'lasya',47,2);

Output:

Exporting SQL Server Database:

After creating a database in  “Microsoft SQL Server”, Let’s see how exporting takes place.

Step 1: Open the Object Explorer, Right-click on the Database that you want to export and click the “task” option and select  “Export Data-Tier Application”. 

                   

Step 2: Click Next and by browsing, select the destination folder in which you have to save the database file. The filename should be as same as the database name ( here “college” ) and click “Next ” and “Finish”. You will get a dialogue box showing the result of exporting.

 

Importing SQL Server Database :

Step 1: Right Click on the Database folder and select “Import Data-Tier Application” and click “Next.

Step 2: Select the file which you have exported and change the name of the database 

 

here we changed the database name from “college” to “college_ info” and click “Next” and a dialogue box appears showing the result of importing.

Related Articles

Start Your Coding Journey Now!

Register 

إرسال تعليق

how make Google Account

  RANDOM LOG IN EXPLORE HELP US EDIT PRO wikiHow is where trusted research and expert knowledge come together.  Learn why people  trust wikiHow WEBSITE APPLICATION INSTRUCTIONS GOOGLE APPLICATIONS 5 Easy Steps to Create a Google Account on Any Device Download Article A step-by-step guide to creating a Google account and Gmail address STEPS Steps OTHER SECTIONS Expert Q&A Tips and Warnings Related Articles References Co-authored by   Mitch Harris  and  Darlene Antonelli, MA Last Updated: February 7, 2023   Tested Do you want a new Google account? A Google account is the key to accessing all of Google’s products and services, most of which are free. Once you create a Google account, you can access tools like Google Drive, Gmail, and Google Docs, as well  sync Chrome browsing data  across all of your devices. Signing up for an account is a quick and simple process, and you can create more than one! This wikiHow article walks you through sign...

iphone

  Skip to Main Content null Departments Services Reorder My Items Sign In Account 0 $0.00 How do you want your items? | Sacramento, 95829 Sacramento Supercenter Deals Easter Grocery & essentials Home Tech Fashion Auto Walmart+ Get a great deal on the latest phones Sponsored by Cricket Wireless Shop now Cricket Wireless Apple iPhone 11, 64GB, Black - Prepaid Smartphone Add Now $399.00 current price Now $399.00 $499.00 was $499.00 Cricket Wireless Apple iPhone 11, 64GB, Black - Prepaid Smartphone 519 4.2 out of 5 Stars. 519 reviews In-store Price Brand Speed Sort by | Best Match Results for "Iphone Cell Phone" (1000+) Price when purchased online AT&T Apple iPhone SE (2nd Generation - 2020), 64GB, Black - Prepaid Smartphone [Locked to AT&T] 50+ people viewing now Add Sponsored $199.00 current price $199.00 AT&T Apple iPhone SE (2nd Generation - 2020), 64GB, Black - Prepaid Smartphone [Locked to AT&T] 275 3.7 out of 5 Stars. 275 reviews Save with 2-day shippin...

Best Database Software

  Skip to Content Skip to Navigation Best Software for 2023 is now live View the winners Enter product name, software category, service name, ... Write Review Software Services G2 for Business Deals Join or Sign In Overview Resources Home Database Software Best Database Software Database software, also known as database management software, can be categorized into niche groups such as relational and non-relational databases. Both database categories are commonly used for storing customer data, product information, financial figures, and other business details. Developers on who need a database software on a budget can look at the best free database software in 2018 for a database solution. Here are the overall best database software in 2018 What is Database Software? There are a number of different database types, often used for specific purposes. Some store specific types of files, while others are just more easily scaled or integrated. All of them, though, are used to store vario...

Send Whatsapp Query