EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials SQL Tutorial How to Install SQL Server
Secondary Sidebar
SQL Tutorial
  • Basic
    • What is SQL
    • Careers in SQL
    • Careers in SQL Server
    • IS SQL Microsoft?
    • SQL Management Tools
    • What is SQL Developer
    • Uses of SQL
    • How to Install SQL Server
    • What is SQL Server
    • SQL Quick References
    • SQL Like Wildcard
    • SQL Like with Multiple Values
    • SQL Examples
    • SQL Server Versions
    • SQL DROP DB
    • SQL Case Insensitive
    • SQL Expressions
    • Database in SQL
    • SQL Data Types
    • SQL Keywords
    • Composite Key in SQL
    • SQL WAITFOR
    • SQL Constraints
    • Transactions in SQL
    • First Normal Form
    • SQL Server Data Types
    • SQL Administration
    • SQL Variables
    • SQL Enum
    • SQL GROUP BY WHERE
    • SQL ROW
    • SQL EXECUTE
    • SQL EXCLUDE
    • SQL Performance Tuning
    • SQL UUID
    • Begin SQL
    • SQL Update Join
    • Cheat sheet SQL
  • Operators
    • SQL Operators
    • SQL Arithmetic Operators
    • SQL Logical Operators
    • SQL String Operators
    • Ternary Operator in SQL
  • Commands
    • SQL Commands
    • sqlplus set commands
    • SQL Alter Command
    • SQL Commands Update
    • SQL DML Commands
    • SQL DDL Commands
    • FETCH in SQL
  • Clause
    • SQL Clauses
    • SQL IN Operator
    • SQL SELECT DISTINCT Multiple Columns
    • SQL Null Values
    • SQL LIKE
    • SQL LIKE Query
    • SQL LIKE Operator
    • SQL LIKE Clause
    • SQL NOT Operator
    • SQL Minus
    • SQL WHERE Clause
    • SQL with Clause
    • SQL HAVING Clause
    • GROUP BY clause in SQL
    • SQL GROUP BY DAY
    • ORDER BY Clause in SQL
    • SQL ORDER BY CASE
    • SQL ORDER BY DESC
    • SQL ORDER BY DATE
    • SQL ORDER BY Alphabetical
    • SQL ORDER BY Ascending
    • SQL Order by Count
    • SQL GROUP BY Month
    • SQL GROUP BY Multiple Columns
    • SQL GROUPING SETS
  • Queries
    • SQL Insert Query
    • SQL SELECT Query
    • SQL SELECT RANDOM
    • SQL Except Select
    • SQL Subquery
    • SQL SELECT DISTINCT
    • SQL WITH AS Statement
  • Keys
    • SQL Keys
    • SQL Foreign Key
    • Primary Key in SQL
    • Foreign Key in SQL
    • Unique Key in SQL
    • SQL UNIQUE Constraint
    • SQL Primary Key
    • Alternate Key in SQL
    • SQL Super Key
  • Functions
    • SQL Date Function
    • SQL Server Functions
    • SQL String Functions
    • SQL Compare String
    • Timestamp to Date in SQL
    • SQL REGEX
    • SQL Window Functions
    • SQL Syntax
    • SQL CONCAT
    • SQL ALTER TABLE
    • SQL MOD()
    • SQL Timestamp
    • SQL Min and Max
    • SQL TO_DATE()
    • SQL DATEADD()
    • SQL DATEDIFF()
    • SQL HOUR()
    • SQLite? functions
    • ANY in SQL
    • LIKE Query in SQL
    • SQL NOT NULL
    • SQL NOT IN
    • SQL MAX()
    • SQL MIN()
    • SQL SUM()
    • SQL COUNT
    • SQL identity
    • SQL DELETE Trigger
    • SQL Declare Variable
    • SQL Text Search
    • SQL COUNT DISTINCT
    • SQL TEXT
    • SQL Limit Order By
    • BETWEEN in SQL
    • LTRIM() in SQL
    • TOP in SQL
    • SQL Select Top
    • Merge SQL
    • SQL TRUNCATE()
    • SQL UNION
    • SQL ALL
    • SQL INTERSECT
    • SQL Alias
    • SQL Server Substring
    • CUBE in SQL
    • SQL RANK()
    • SQL CTE
    • SQL LAG()
    • SQL MID
    • SQL avg()
    • SQL WEEK
    • SQL DELETE
    • SQL DATEPART()
    • SQL DECODE()
    • SQL DENSE_RANK()
    • SQL NTILE()
    • SQL NULLIF()
    • SQL Stuff
    • SQL Ceiling
    • SQL EXISTS
    • SQL LEAD()
    • SQL COALESCE
    • SQL BLOB
    • SQL ROW_NUMBER
    • SQL Server Replace
    • SQL Ranking Function
    • SQL Server Permission
  • T-SQL
    • T-SQL pivot
    • T-SQL Formatter
    • T-SQL TRY CATCH
    • T-SQL CTE
    • T-SQL CASE
    • T-SQL DATEPART
    • T-SQL Date Format
    • T-SQL ROUND
    • T-SQL Loop
    • T-SQL IIF
    • T-SQL Union
    • T-SQL CREATE TABLE
    • T-SQL INSERT
    • T-SQL Stuff
    • T-SQL ISNULL
    • T-SQL ADD Column
    • T-SQL DATEDIFF
  • Joins
    • Join Query in SQL
    • Types of Joins in SQL
    • Types of Joins in SQL Server
    • SQL Inner Join
    • SQL Join Two Tables
    • SQL Delete Join
    • SQL Left Join
    • LEFT OUTER JOIN in SQL
    • SQL Right Join
    • SQL Cross Join
    • SQL Outer Join
    • SQL Full Join
    • SQL Self Join
    • Natural Join SQL
    • SQL Multiple Join
  • Advanced
    • SQL Aliases
    • SQL Hosting
    • SQL Auto Increment
    • SQL Injection
    • SQL Wildcards
    • SQL Check
    • SQL Indexes
    • Select Distinct
    • SQL BETWEEN
    • SQLPlus spool
    • SQL Create Table
    • SQL Schema
    • Comparison Operators in SQL
    • SQL_plus
    • SQL Formatter
    • SQL LEFT INNER JOIN
    • SQL Plus Command
    • SQLPlus not found
    • SQL Injection Attack
    • Aggregate Functions in SQL
    • SQL REVOKE
    • SQL Select Distinct Count
    • IF ELSE Statement in SQL
    • SQL CASE Statement
    • SQL While Loop
    • SQL BIGINT
    • SQL Crosstab
    • SQL Wildcard Character
    • SQL INSTR()
    • SQL now
    • SQL synonyms
    • SQLite?export to csv
    • What is Procedure in SQL
    • Stored Procedure in SQL?
    • SQL Server Constraints
    • SQL DELETE ROW
    • Column in SQL
    • Table in SQL
    • SQL Virtual Table
    • SQL Merge Two Tables
    • SQL Table Partitioning
    • SQL Temporary Table
    • SQL Clone Table
    • SQL Rename Table
    • SQL LOCK TABLE
    • SQL Clear Table
    • SQL DESCRIBE TABLE
    • SQL Mapping
    • Cursors in SQL
    • AND in SQL
    • Wildcard in SQL
    • SQL FETCH NEXT
    • SQL Views
    • SQL Delete View
    • Triggers in SQL
    • SQL UPDATE Trigger
    • SQL AFTER UPDATE Trigger
    • SQL Update Statement
    • SQL DROP TRIGGER
    • SQL DROP Table
    • Types of SQL Views
    • SQL Port
    • SQL Clustered Index
    • SQL COMMIT
    • Distinct Keyword in SQL
    • PARTITION BY in SQL
    • SQL Set Operators
    • SQL UNION ALL
    • Metadata in SQL
    • SQL Bulk Insert
    • Array in SQL
    • SQL REGEXP
    • JSON in SQL
    • SQL For loop
    • EXPLAIN in SQL
    • ROLLUP in SQL
    • Escape Character SQL
    • SQL Cluster
    • SQL Backup
    • SQL Pattern Matching
    • SQL Users
    • ISNULL SQL Server
    • SQL pivot
    • SQL Import CSV
    • SQL if then else
    • SQL ignore-case
    • SQL Matches
    • SQL Search String
    • SQL Column Alias
    • SQL extensions
    • SQL Substring Function
    • Charindex SQL
  • SqlAlchemy
    • What is SQLAlchemy
    • SqlAlchemy ORM
    • SQLAlchemy count
    • SQLAlchemy update object
    • SQLAlchemy pip
    • SQLAlchemy Connection
    • SQLAlchemy Metadata
    • SQLAlchemy Raw SQL
    • SQLAlchemy Filter in List
    • SQLAlchemy Alias
    • SQLAlchemy unique
    • SQLAlchemy JSONB
    • SQLAlchemy Async
    • SQLAlchemy Types
    • SQLAlchemy Many to Many
    • SQLAlchemy Example
    • SQLAlchemy Model
    • SQLAlchemy Data Types
    • SQLAlchemy Filter
    • SQLAlchemy SQLite
    • SQLAlchemy DateTime
    • SQLAlchemy create_engine
    • SQLAlchemy Delete
    • SQLAlchemy Migrations
  • NoSQL
    • NoSQL Databases List
    • NoSQL Data Modeling
    • Types of NoSQL Databases
    • NoSQL Injection
    • NoSQL vs SQL Databases
    • NoSQL Use Cases
    • NoSQL Key Value
  • Interview Questions
    • SQL Interview Questions
    • Advance SQL Interview Questions
    • SQL Joins Interview Questions
    • SQL Server Interview Questions
    • SQL Current Month

Related Courses

JDBC Training Course

PHP course

Windows 10 Training

SQL Course Training

PL/SQL Certification Courses

Oracle Certification Courses

How to Install SQL Server

By Afshan BanuAfshan Banu

How to Install SQL Server

How to Install SQL Server?

The following article provides an outline for How to Install SQL Server. SQL server can be installed by Downloading SQL server from Microsoft.com site where various version is available and launching the appropriate installer once the download is completed. There are three editions for the installation type: Basic, Custom, and Download media; it is always recommended to select custom type as it helps to select the features from the list we wish to install.

All in One Data Science Bundle(360+ Courses, 50+ projects)
Python TutorialMachine LearningAWSArtificial Intelligence
TableauR ProgrammingPowerBIDeep Learning
Price
View Courses
360+ Online Courses | 50+ projects | 1500+ Hours | Verifiable Certificates | Lifetime Access
4.7 (85,992 ratings)

How to Download Microsoft SQL Server Management Studio 2017 (SSMS)

SSMS is a tool used to configure, monitor, and administer instances of SQL and SSMS use for data-tier components to monitor, deploy, and upgrade it for the applications and even the important use to build and run scripts and queries.

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

Now download the Microsoft SQL Server Management Studio 2017 from:

https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017

Through this link, you can download SSMS 17.0. The latest version of SQL Server Management Studio is 18.0, which is Microsoft SQL Server Management Studio 2018.

Now the below image shows the download page for Microsoft SQL Server Management Studio 2017.

Download SQL server Management Studio

Steps to Install SQL Server

Let us see the steps required to install SQL Server:

Once you download “SSMS-Setup-ENU.exe”, other windows get open for saving SQL Server Management Studio 2017 exe, and once you click the save file button, it starts the downloading.

SSMS-Setup-ENU

Step 1: Next, for the installation, go to the folder where “SSMS-Setup-ENU.exe” is there and then double click the exe file to start the installation.

SQL Server installation Step 1

 

Step 2: After that, the system will ask the permission that is Click yes to continue installing.

Step 3: Next comes the Installation window. Click the Install to begin the installation.

Click the Install

Then install gets start and then starts the Loading Packages.

Loading Packages

Step 4: When the installation of SQL Server is completed, it asks to close the window, so click the close button and restart your computer.

Click the close button

Step 5: Now, to start with Microsoft SQL Server 2017 tool, click the start button and search for Microsoft SQL Server management studio 17; once you get it to click on it, and it gets starts.

SQL Server installation Step 5

Step 6: Once you start SQL Server Management Studio 17, opening the SQL Server Management Studio 17 the first time will take a few minutes but not the next time when using it.

SQL Server installation Step 6-1

And finally, after opening “SQL Server Management Studio 2017”, it comes with the following window and asks to connect server. So click connect and start using the “SQL Server Management Studio 2017”.

SQL Server Management Studio 2017

The installation of SQL Server Management Studio is completed; now, we will discuss the feature and components of the SQL Server Management Studio and how to use it. An integrated environment tool, SQL Server Management Studio, can be used to create and manage SQL and also to develop all components of SQL Server, SQL Data Warehouse and even in business intelligence. SQL Server Management Studio provides a number of graphical commands which helps to access to SQL Server and to create and manage SQL server objects.

Components of SQL Server Management Studio

Given below are the components of SQL Server Management Studio to get familiar with the SQL Server Management Studio tool:

  • Object Explorer: Object Explorer is used to create, manage and view all of the SQL Server objects like the database, table, view, index and all.
  • Template Explorer: Template Explorer is used to build and manage the predefined queries. The predefined queries here help to speed up the development of queries as we just need to customize it.
  • Solution Explorer: Solution Explorer used to view the build and open projects and even to manage queries and scripts for administration task.
  • Visual Database Tools: SQL Server Management Studio includes visual design tools.
  • Query and Text Editors: Query and Text Editors used to write and execute queries and scripts. Once you write the query, execute it with the help of executing button, which is on the top.

Query and Text Editors used to write and execute queries and scripts. Once you write the query, execute it with the help of executing button, which is on the top.

List of Queries

Given below are some of the queries which we can create and run in SQL Server Management Studio.

1. Create a Database

In SQL Server Management Studio, the Adventure work is the sample databases to your SQL Server instance. The AdventureWorks since the 2012 version has not seen any significant changes; the only differences between the various versions of AdventureWorks are the name of the database.

Now create a database named Employee by following one of the two methods:

  • Right-click on the database folder in Object Explorer, and then select a new database; the new window gets open, then enter Employee for the field database name and then click ok. The database employee gets created, it can be seen in the Object Explorer.
  • Another method is to right-click your server instance in Object Explorer, and then select New Query or the click the New Query command which is on the top of the tool.

The new query window will open and paste the following T-SQL code snippet:

Code:

USE master
GO
IF NOT EXISTS (
SELECT name
FROM sys.databases
WHERE name = N'Employee'
)
CREATE DATABASE Employee
GO

Now execute the query by selecting the entire query and click Execute or select the entire query and press F5 on your keyboard. After executing the query new database Employee is created and appears in the list of databases in Object Explorer. Right-click the Databases node, and then select Refresh, If it doesn’t appear.

2. Create a Table in the New Database

Next, create a table in the newly created Employee database. To create a table in the Employee database switch the connection context to the Employee database, as the query editor is still in the context of the master database, by executing the following statements.

  • — Create a new table called ‘Empdetails’ in schema ’emp’.
  • — Create the table in the specified schema.

Code:

CREATE TABLE emp. Empdetails
(
Emp-Id        INT    NOT NULL   PRIMARY KEY, -- creating a primary key column
Emp-name      [NVARCHAR](20)  NOT NULL,
Emp-location  [NVARCHAR](20)  NOT NULL,
Email     [NVARCHAR](20)  NOT NULL
);
GO

After executing the query, the new Empdetails table is created and displayed in the list of tables in Object Explorer under the Employee database.

3. Insert Data into a New Table

  • — Insert data into the table.

Code:

insert into emp.Empdetails(Emp-Id, Emp-name,Emp-location,Email)
values(101,'john','Bangalore','xyz@gmail.com')

After executing the query, the new row is inserted into Empdetails table.

4. Select Data from the Table

  • — Create the table in the specified schema.

Code:

select * from emp. Empdetails

After executing the query, all rows with all column is fetch from the Empdetails table.

Recommended Articles

This has been a guide to how to Install SQL Server. Here we have discussed different steps to install SQL server and component of SQL server management. You may also look at the following articles to learn more –

  1. SQL GROUP BY WHERE
  2. SQL Server Versions
  3. sql projects
  4. SQL now
Popular Course in this category
SQL Training Program (7 Courses, 8+ Projects)
  7 Online Courses |  8 Hands-on Projects |  73+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

JDBC Training (6 Courses, 7+ Projects)4.9
PHP Training (5 Courses, 3 Project)4.8
Windows 10 Training (4 Courses, 4+ Projects)4.7
PL SQL Training (4 Courses, 2+ Projects)4.7
Oracle Training (14 Courses, 8+ Projects)4.7
4 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Database Management
  • Machine Learning
  • All Tutorials
Certification Courses
  • All Courses
  • Data Science Course - All in One Bundle
  • Machine Learning Course
  • Hadoop Certification Training
  • Cloud Computing Training Course
  • R Programming Course
  • AWS Training Course
  • SAS Training Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Data Science Course

SPSS, Data visualization with Python, Matplotlib Library, Seaborn Package

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Data Science Course

Hadoop, Data Science, Statistics & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more