WA3021 Introduction to SQL

WA3021 Introduction to SQL

WA3021 Introduction to SQL Classroom Setup Guide Web Age Solutions Inc. 1 Table of Contents Part 1 - Minimum Software Requirements ....................................................................3 Part 2 - Software..............................................................................................................3 Part 3 - Instructions.........................................................................................................3 Part 4 - 1. Installing Microsoft SQL Server 2019 Express Edition.................................4 Part 5 - 2. Verification...................................................................................................14 Part 6 - Installing the Example Databases.....................................................................17 Part 7 - Summary..........................................................................................................18 2 Part 1 - Minimum Software Requirements ● Windows 10 or Windows Server 2016 or newer ● 4GB Ram ● 4GB Storage Space Part 2 - Software Installation packages for the following programs are available on the internet: ● Microsoft SQL Server Express 2019 ○ https://www.microsoft.com/en-us/sql-server/sql-server-downloads ● Microsoft SQL Server Managment Studio (SSMS) ○ https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management- studio-ssms?view=sql-server-ver15 ● Microsoft Example Databases ○ https://github.com/microsoft/sql-server-samples Instructions for installing SQL server express and SQL server management studio appear below. Intructions for installing the example databases is also listed below but in a separate section. Part 3 - Instructions __1. Make sure the account that you are using to install the software has administrative privileges and the student using this machine will have the same rights. __2. Extract the supporting.zip file (to C:\ __3. Review that the following folders were created: • C:\LabFiles\ 3 Part 4 - 1. Installing Microsoft SQL Server 2019 Express Edition __1. Click SQL2019-SSEI-Expr.exe __2. Select Custom Installation. __3. Accept the default media location path. 4 __4. Click Install __5. In the Installation Screen, click New SQL Server stand-alone installation ... __6. Accept the License, click Next Wait for the installation process to complete. It may take a couple of minutes. __7. ??? Click Install SQL Server Reporting Services __8. Click Install SQL Server Management Tools (SSMS is free!) It should take you to https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio- ssms?redirectedfrom=MSDN&view=sql-server-ver15 5 __9. ????Locate and click the Download SMSS link. - Already did __10. Click SSMS-Setup-ENU.exe (downloaded above – we provide the binary already) __11. Change the installation path to C:\SQL Server Management Studio 6 __12. Click Install __13. When the required component installation has completed, click Close. __14. ???? Visual Studio ???Click Install SQL Server Data Tools __15. Close ??? You should be presented with the Install Rules screen: 7 __16. Click Next __17. Accept the License Terms __18. In the Feature Selection dialog, perform the following operations: • Deselect all the services under Database Engine Services; keep the Database Engine Services checked. 8 __19. Keep the Instance root directory as C:\Program Files\Microsoft SQL Server\ • Scroll down, and under Shared Features, select all the features, check the LocalDB __20. Click Next 9 Wait for the process to complete. You should be presented with the Instance Configuration dialog. 10 __21. Select or accept the Named Instance as SQLExpress __22. Click Next __23. Accept the Defaults on the Server Configuration __24. Click Next You will be presented with the Database Engine Configuration 11 Note, that the logged-in Windows user setting up the SQL Server Instance will become the SQL Server Administrator. __25. Perform the following changes: * Change the Authentication mode to Mixed ..., and specify the wasadmin for the password (this will be the password for the default SQL Server system administrator, sa) * Click the FILESTREAM tab, and select all the checkboxes; accept the Windows share name. __26. Click Next You will be presented with the Compete dialog. 12 13 __27. Keep the summary log file Summary_<hostname>_<timestamp>.txt for your references. __28. Click Close You will return to the SQL Server Installation Center dialog. __29. Close the SQL Server Installation Center dialog. Part 5 - 2. Verification __1. From the Start Menu, start the Microsoft SQL Server Management Studio __2. In the SQL Connect dialog that opens, perform the following operations: * In the Server name, select Browse for more ... and in the Local Servers, under Database Engine, select the SQL Instance you have installed (there should be only one) * In Authentication, select SQL Server Authentication, and enter sa / wasadmin for 14 Login / Password * Click Remember password. 15 __3. Click Connect You should be able to connect to the server with the Object Explorer populated with the SQLEXPRESS instance details. This completes the installation of Microsoft SQL Server Express. 16 Part 6 - Installing the Example Databases The lecture and labs use two example databases from Microsoft: • Northwinds Database (used by labs) • AdventureWorks database (used by lecture material) These databases are both available on the following Github site: • https://github.com/microsoft/sql-server-samples Before installing the exmple databases you need to install the SQL database and Management Studio (as described above in these instructions). __1. To install the Northwinds database (used in the labs) start by downloading the following script file: https://github.com/microsoft/sql-server- samples/blob/master/samples/databases/northwind-pubs/instnwnd.sql __2. Open a command prompt. __3. From the directory holding the script file you just downloaded execute this command: sqlcmd -S .\SQLExpress -i instnwnd.sql You should see the output: Changed database context to 'master'. Changed database context to 'Northwind' The next time you open SSMS the Northwind database should be available. __4. To install the adventure-works database first download the example database site using Git Clone like this: git clone https://github.com/microsoft/sql-server-samples.git This will create a 'sql-server-samples' directory __5. Follow the instruction on the following web page to install the advertureworks database: https://github.com/microsoft/sql-server- 17 samples/tree/master/samples/databases/adventure-works The next time you open SSMS the AdventureWorks database should be available. __6. We are done installing the example databases. Part 7 - Summary You have successfully installed the software for this course! If you have any question please contact us by email at [email protected] From US and Canada call: 1-877-812-8887 ext. 26 International call: 416-406-3994 ext. 26 18.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    18 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us