SQL Server2022 2019 Installation Guide CustomOptionWithTips

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Steps to Install a SQL Server 2022

CIS 430/530
Download Site for a Free MS 2022 SQL Server Developer Version:

https://www.microsoft.com/en-us/sql-server/sql-server-downloads

As of Dec 2022, Only 2022 SQL Server Developer Edition is Available to Download Free in This Site!
(You Can No Longer Choose 2019 Anymore in this site)

From this page, scroll down to get to 2022 MS SQL Server as below

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Please note that 2022 version in this site is a trial version for 180 days.

Click download now and choose for ‘windows’ version in the next window

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Or download SQL Server 2022 Developer edition directly.

After downloaded, run the execute file and follow the ‘Basic’ installation type steps. You can choose
Custom as well.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Make sure you have enough space as specified.

It’s going to take a while for installation to get complete. Sit back and relax!

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Now, click Customize to setup an instance. And DON’T close the window.

Click Accept/Next until Installation Type, chose ‘Perform a new installation of SQL Server 2022’. Then
Next

CIS 430/530 Database Systems and Processing Sunnie S. Chung


CIS 430/530 Database Systems and Processing Sunnie S. Chung
Choose ‘Specify a free edition’. Then Next and Accept

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Here, DON’T pick ‘Azure Extension for SQL Server’. If needed in the future, it can be setup later.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Chose ‘Database Engine Services’. Then Next.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Name your instance then Next.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Just Next.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Add Current User, then Next until installation complete.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


After completing the setup of SQL Server 2022, install SQL Server Management Studio (SSMS) from
the below window (If the window closed, go to https://learn.microsoft.com/en-
us/sql/ssms/download-sql-server-management-studio-ssms)

Below page will open in your browser:

CIS 430/530 Database Systems and Processing Sunnie S. Chung


When you click on ‘Download SQL Server Management Studio 18.12.1’ link, exe file will be
downloaded. RMB on the file and run as administrator. Install it.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


If you encounter a fatal error like the window below, restart your computer and re-install SSMS
again.

After installing, restart computer then open SSMS from start menu options.

Fill in the server details on the SQL Server Management Studio:

CIS 430/530 Database Systems and Processing Sunnie S. Chung


RMB on the SQL Server name and create a new database:

Enter any database name below.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Test these steps by creating a new table in the database that was just created above, and then insert
a record (row) into the table. RMB on new DB and select ‘New Query’ (click New Query button)

A new query window in a file name like “SQLQuery1.sql” file will open. Type the following command
in it:
Use CIS430;

create table test1 (name1 varchar(50))

select this command and click execute.

Then, type

insert into test1 values ('Success')

select this command and click execute.

RMB on the database name and click refresh. You should get the below screen:

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Now let’s query the table and see if we have the new data available:

RMB on dbo.test1 and choose ‘Select top 1000 rows’ or type the following in the query box:
SELECT TOP (1000) [name1] FROM [CIS430].[dbo].[test1]
OR
SELECT * FROM test1

CIS 430/530 Database Systems and Processing Sunnie S. Chung


You’re all set to attempt Lab 1 now!

CIS 430/530 Database Systems and Processing Sunnie S. Chung


Some Trouble shooting Tips from Your Window Setting Issues

Q:

I’m having a trouble downloading a SQL Server, I kept getting errors that I can’t figure out. The
Attached are the errors that I’m seeing: so then, I went to look this error up online and I went where
they told me to go in my computers settings, after I changed the settings in my computer, I had an
error as seen in the second pic below: I am having so much trouble, please help.

CIS 430/530 Database Systems and Processing Sunnie S. Chung


A:

I saw the screenshots, I have one solution which you can try but since
you have done some troubleshooting earlier, so, I am not sure if this will
work, so, I have two suggestions-

1. Uninstall the SQL and all the programs that were installed with it
through Add/Remove Program, then go to the Azure link as
suggested in class page and redownload the file. Then reset the
settings you have done for troubleshooting. And finally reinstall
SQL.
Also, make sure to install Visual studio 2019 before the SQL
installation.

2. If you want you can reset the OS and make sure to uninstall the
SQL, after that first install Visual studio 2019 and then run the SQL
installer.

Even after these, if you are getting the same error then go to below
folder –

CIS 430/530 Database Systems and Processing Sunnie S. Chung


C:\Users\your_username\AppData

Then select Local folder and then look for Temp folder, then do a right
click on Temp folder and then select properties.
In properties select Security and then select Everyone and select the
Full Control checkbox and finally apply the changes and then try
installing.

CIS 430/530 Database Systems and Processing Sunnie S. Chung

You might also like