المشاركات

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 

إرسال تعليق

SQL MY SQL databases phone tablat computer And TV

  نبذة عن ووردبريس SQL MY SQL databases phone tablat co البحث مرحبًا،  admin تسجيل الخروج التجاوز إلى المحتوى SQL MY SQL databases phone tablat compouter And TV Home Services About Reviews Why Us Contact Home my sql What is MySQL? MySQL is the world’s most popular open source database. According to  DB-Engines , MySQL ranks as the second-most-popular database, behind  Oracle Database . MySQL powers many of the most accessed applications, including Facebook, Twitter, Netflix, Uber, Airbnb, Shopify, and Booking.com. Since MySQL is open source, it includes numerous features developed in close cooperation with users over more than 25 years. So it’s very likely that your favorite application or programming language is supported by MySQL Database. How do you pronounce “MySQL”? “My ess-cue-el” is the “official” way to pronounce “MySQL,” but pronouncing it “my sequel” is common too. What is the name of the MySQL dolphin? The MySQL logo is a dolphin named Sakila. The name...

Rac

  Skip  HOME RDBMS EXADATA WEBLOGIC APPSDBA OS OTHERS SCRIPTS Step by Step Manual Upgrade Oracle Database from 12c to 19c DBsGuru   >  DATABASE ,  UPGRADE  >   Step by Step Manual Upgrade Oracle Database from 12c to 19c DBsGuru   February 20, 2022   0 Comments 0 ( 0 ) Step by Step Manual Upgrade Oracle Database from 12c to 19c In a recent post, we demonstrated  Step by Step Oracle Database Upgrade from 11g (11.2.0.4) to 12c (12.2.0.1) using DBUA,  click here to read more about it.   In this article, we are going to demonstrate Step by Step Manual Upgrade Oracle Database from12c to 19c on Linux. Follow the below steps to perform a manual upgrade to 19c. List of target upgrade versions from supported source version along with the certificate,  data source  support.oracle.com . Direct Upgrade List: Source DB Version Target DB Version 18.1 19c 12.2.0.2 19c 12.1.0.2 19c 11.2.04 19c Indirect Upgrade List: So...

Send Whatsapp Query