Home » SQL Server (Page 2)

Category Archives: SQL Server

SQL Server Sample Databases

[MSSQLFUN & Decode ITeS becomes a family of 1500 individuals across the globe. Please join us on
Facebook
& YouTube.]

To start your learning of SQL Server and testing of new features, Microsoft provided some of ready to use sample databases. These are very useful for students and new learners.

Microsoft provides 2 sample databases which can be found at: https://docs.microsoft.com/en-us/sql/samples/sql-samples-where-are?view=sql-server-ver15

1) AdventureWorks: One of the oldest sample databases, Microsoft keeps updating it with new versions. Directly available on MS site for download.

2) Wide World Importers: New entry in sample databases and can be downloaded from Github.

When you click on the yellow highlighted link, It will redirect you to Github and you can download backup files from there.

Reference: Rohit Garg (http://mssqlfun.com/)

You can find and follow MSSQLFUN:-

Subscribe YouTube Channel Decode ITES

http://www.facebook.com/mssqlfun

http://mssqlfun.com/feed

https://twitter.com/Rgarg86

Other Linked Profiles:-

http://social.msdn.microsoft.com/Profile/rohitgarg

https://www.linkedin.com/in/rohitgarg1986/

Step By Step Installation of SQL Server 2019 with all features

[MSSQLFUN & Decode ITeS becomes a family of 1500 individuals across the globe. Please join us on
Facebook 
& YouTube.]

Today, I will take you to step by step installation of SQL Server 2019 with all features.

You can go through my previous post for downloading Download SQL Server Developer / Evaluation / Express Editions, YouTube Link.

Step 1: Locate Setup.exe and run it as Administrator.

Step 2: Setup will open SQL Server 2019 installation Center

Step 3: Go to Installation option and click “New SQL Server stand-alone installation or add features to an existing installation”

Step 4: Select free edition you like to install. The single setup gives you the option of Evaluation \ Developer \ Express edition to install. As discussed in my previous blog Understand SQL Server Editions and Components (YouTube), SQL Server Developer / Evaluation / Express is free to use editions with fewer limitations and restrictions.

Step 5: Accept EULA (End User License Agreement)

Step 6: Setup will perform some rule check before proceeding. In case of any issues, It will stop and ask you to rectify it.

Step 7: Microsoft gives you the option of automatic update of SQL Server with the latest security and other important updates along with windows. I suggest skipping it because it’s not recommended for Production systems and requires the internet which is very rare for servers due to security concerns.

Step 8: In case you accept for Microsoft Update in the previous step and system has internet connectivity, Setup will check available SQL Server upgrades. Setup will download those upgrades (SP, CU) and install them with SQL Setup installation. This will save you the time of separate installation. You try this on the local system and again as mentioned above, not recommended for production systems.

Step 9: Setup will install some installation files before to begin the actual installation

Step 10: Setup will run installation rules \ checks. In case of any issues, it will stop and ask you to rectify it.

Step 11: Feature Selection. In the current window, You can select the features you like to install. For the demo, We will install all versions. These windows will also show the space requirement for setup installation based on features selected. Also, you can change the installation and shared feature directory as per your requirements.

Step 12: Based on the selected features, Setup will run a rule checker.

Step 13: SQL instance name. SQL gives you the option of default or named SQL Server instance. Once the system can have only one default instance and multiple names instance. We will install the named instance today. This window will also review your system and display any previously installed SQL Server instances on your system.

Step 14: PolyBase Configuration, You can leave it as it is and move to next.

Step 15: Select features need JAVA, You can allow setup to install JAVA or mentioned Java path in the case already installed.

Step 16: Server Configuration – Service Account Window.

  1. You can change the service account of any services and start-up type
  2. As per your requirement, Select “Grant Perform Volume Maintenance Task to SQL Service Account”. In Case of service, the account is part of the local admin group this will by default assigned else recommended to provide it.

Step 17: Server Configuration – Collation Window. SQL Server selects collation based on default language and location of the system, you can change it as per your requirements. I suggest not to change it without testing and confirmation. This will decide how SQL Server will deal with tests. Case sensitive or case insensitive means upper caps & small caps will be treated equally or differently OR Data will be sorted in ascending order or descending order.

Step 18: Database Engine Configuration – Server Configuration.

  1. Select authentication mode for your SQL Server instance. SQL Server support 2 authentication modes Windows Authentication and Mixed Mode Authentication. Understand SQL Server Authentication Types and Modes on Decode ITeS.
  2. Enter the SA account password. Choose a strong password.
  3. Select windows account that you want to have sysadmin right

Step 19: Database Engine Configuration – Data Directories You Change system \ user \ backup directory as per disk configured on the server

Step 20: Database Engine Configuration – TempDB. TempDB is crucial for database performance. Microsoft adds the option to configure TempDB as per best practices or as per your requirements with the installation. This will ease up the DBA task after server installation.

Step 21: Database Engine Configuration – MaxDOP. I will suggest to leave it on default value and change it after proper DBA recommendation and application testing.

Step 22: Database Engine Configuration – Memory Configuration. Enter min and max server memory and accept ti use recommended values instead of default one. Same as above, Please configure it after DBA review and recommendation.

Step 23: Database Engine Configuration – Filestream. You can enable filestream in case required else leave it as it is.

Step 24: Analysis Services Configuration. Do not forget to add the user for admin privileges on SSAS.

Step 25: Integration Services – Master Mode, Leve on default no changes. Change only after proper testing and DBA review.

Step 26: Integration Services – Worker Mode, Leve on default no changes. Change only after proper testing and DBA review.

Step 27: Distributed Replay Controller – Add admin account

Step 28: Distributed Replay Controller – Mention Controller Name

Step 29: Accept R Services.

Step 30: Accept Python installation

Step 31: Rule checker based on feature configuration

Step 32: Setup is ready to install, You can review configuration in the current window. Click next to start the installation.

Step 33: Installation is completed.

Step 34: You can review setup installation logs and services installed.

SQL Server 2019 setup comes up with a long list of options. These are very helpful and tries to install setup with the most recommended and best practices configuration.

Reference: Rohit Garg (http://mssqlfun.com/)

You can find and follow MSSQLFUN:-

Subscribe YouTube Channel Decode ITES

http://www.facebook.com/mssqlfun

http://mssqlfun.com/feed

https://twitter.com/Rgarg86

Other Linked Profiles:-

http://social.msdn.microsoft.com/Profile/rohitgarg

https://www.linkedin.com/in/rohitgarg1986/

Download SQL Server Developer / Evaluation / Express Editions

[MSSQLFUN & Decote ITeS becomes a family of 1400 individuals across the globe. Please join us on
Facebook
& YouTube.]

Click here to view on YouTube

Today, I will take you to the steps of downloading Download SQL Server Developer / Evaluation / Express Editions. As discussed in my previous blog Understand SQL Server Editions and Components, SQL Server Developer / Evaluation / Express are free to use editions with fewer limitations and restrictions.

 

Step 1- Open Link (https://www.microsoft.com/en-au/sql-server/sql-server-downloads).

Step 2- You Browse to SQL Server 2019 Setup pages, it will give you the option of downloading Enterprise Evaluation, Developer, and Express edition.

You click on the desired option to download the setup file. We will download the Enterprise Evaluation Edition.

Step 3- Sign up to download SQL Server 2019 evaluation

Step 4- Download link is ready, please click

Step 5-

  • Click the file downloaded from the last step, “SQL2019-SSEI-Eval.exe”. Click to install it.
  • Chose the “Download Media” option to have offline setup.

Step 6-

  • Select Language
  • Choose CAB file to download
  • Select the location of the download file
  • Click Download

Step 7- These are the downloaded files and these are not ready to install setup. We need to unbox the setup file by giving exe.

Step 8- When you execute it, it will ask for the location to save setup files

Step 9- Setup files are ready to install.

We will use this setup to install SQL Server 2019 instance upcoming lesson.

Reference: Rohit Garg (http://mssqlfun.com/)

You can find and follow MSSQLFUN:-

Subscribe YouTube Channel Decode ITES

http://www.facebook.com/mssqlfun
http://mssqlfun.com/feed

Other Linked Profiles:-

http://social.msdn.microsoft.com/Profile/rohitgarg
https://www.linkedin.com/in/rohitgarg1986/

Create Virtual Machine in Hyper-V and Step by Step Windows Server 2016 Installation

[MSSQLFUN & Decote ITeS becomes a family of 1400 individuals across the globe. Please join us on
Facebook & YouTube.]

Today, We will go through “How to create a virtual machine in Hyper-V?” along with Step by Step Windows Server 2016 Installation.

Step 1: Open Hyper-V > Right Click on Server Name > New > Virtual Machine. This will launch the Virtual Machine Creation Wizard.

Step 2: Enter Name of Virtual Machine

Step 3: Select the BIOS type. We will go with Generation 1, Generation 2 (UEFI based firmware support) is a new one.

Step 4: Enter RAM for virtual memory.

Step 5: Choose if you want a virtual machine to be on the network on not. You can create a machine without connecting to the network or connect to the default network on which your physical system is running or create a separate network for this.

Step 6: Mention size of the virtual machine

Step 7: Installation options. Hyper-v gives you 4 options here.

  • Create an empty virtual machine here and chose to install OS later.
  • Install OS from ISO
  • Install OS from bootable floppy
  • Install OS from the installation server

Step 8: Final summary window before installation start. You can review all inputs and configuration provided, Click Finish.

Step 9: At the very first page of installation, It will ask for Language selection, Click Next

Step 10: Select the OS you want to install. We will with Data Center Desktop Experience

Step 11: Accept EULA (End User License Agreement)

Step 12: Select Disk to install.

Step 13: Enter Administrator Password, this will used for the first login.

Step 14: Windows Server 2016 is ready to log in with the Administrator password mentioned in the last step.

We have successfully created a virtual machine in Hyper-V and install Windows Server 2016.

Note: Windows Server 2016 installation may need multiple reboots between installation.

Reference: Rohit Garg (http://mssqlfun.com/)

You can find and follow MSSQLFUN:-

Subscribe YouTube Channel Decode ITES

http://www.facebook.com/mssqlfun

http://mssqlfun.com/feed

https://twitter.com/Rgarg86

Other Linked Profiles:-

http://social.msdn.microsoft.com/Profile/rohitgarg

https://www.linkedin.com/in/rohitgarg1986/

LANDMARK OF 1000 SUBSCRIBERS ACHIEVED. THANK YOU ALL FOR SUPPORT.

1000 followers landmark

I am excited to share that MSSQLFUN reaches the milestone of 1000 subscribers with your support.

Thank you, everyone, to stay along with me on this journey.

I started this blog for the self repository of SQL Server knowledge articles, Later I made it public to connect with you all.

I had also started 2nd part of MSSQLFUN, YouTube Channel “Decode ITeS”. I like to request to subscribe and provide the same support to “Decode ITeS”.

Reference: Rohit Garg (http://mssqlfun.com/)

You can find and follow MSSQLFUN:-

Subscribe YouTube Channel Decode ITES

http://www.facebook.com/mssqlfun
http://mssqlfun.com/feed

Other Linked Profiles:-

http://social.msdn.microsoft.com/Profile/rohitgarg
https://www.linkedin.com/in/rohitgarg1986/
%d bloggers like this: