Docsity

Database Programming with SQL Server 2019 Express — Complete Study Guide & Exam Questions, Summaries of Database Programming

Partial preview of the text

Download Database Programming with SQL Server 2019 Express — Complete Study Guide & Exam Questions and more Summaries Database Programming in PDF only on Docsity!

DATABASE PROGRAMMING

SQL SERVER 2019 EXPRESS

Exam-Focused Study Guide

COURSE Diploma in Information Technology • Term 04 FOCUS SQL Server 2019 Express • SSMS • Relational Databases INCLUDES Condensed Notes • Key Terms • Exam Practice • Answer Key A clean revision companion created from the provided Database Programming lecture material.

How to Use This Guide

Use this guide in three passes: Learn → Test → Review.  Learn: read the concept summaries and key terms before attempting the questions.  Test: answer the multiple-choice questions without looking at the answer key.  Review: return to the section connected to any question you missed and explain the idea in your own words.  Before an exam: use the Quick Revision Checklist at the end for a fast final review.

Learning Outcomes

After studying this guide, you should be able to:  Identify the software components used with SQL Server 2019 Express and SSMS.  Explain the basic hardware components of a client/server system.  Distinguish LAN, WAN and enterprise systems.  Explain the purpose of the relational database model and relationships between tables.  Explain why column data types matter.  Explain NULL values and default values.  Describe identity columns and the Identity Seed and Identity Increment properties.  Create a SQL Server authentication login in SSMS using the procedure from the lecture.  Recognize SQL Server Error 18456 and its basic cause described in the lecture.

Unit at a Glance

# Topic What to Know 01 Installation SQL Server 2019 database engine and SSMS 02 Client/Server Clients, server and network 03 Networks LAN, WAN and enterprise systems 04 Relational Model Tables and relationships 05 Columns Data types, NULL and defaults 06 Identity Identity columns, seed and increment 07 Authentication Creating a SQL Server login 08 Troubleshooting Error 18456

1. Installation of SQL Server 2019 Express and SSMS

The lecture identifies two software products needed for the unit: the SQL Server 2019 database engine and SQL Server Management Studio (SSMS). The lecture notes that both are available free from Microsoft's website.

NULL

NULL represents a value that is unknown, unavailable or not applicable. If a column does not allow NULL values, a value must be supplied for that column before the row can be stored.

Default values

A default value is automatically assigned to a column when another value is not provided.

6. Identity Columns

SQL Server can automatically generate the value of a numeric column. The lecture calls this an identity column.  Is Identity — identifies the column as an identity column.  Identity Seed — establishes the starting value.  Identity Increment — establishes how the generated value increases. The lecture uses VendorID and InvoiceID as examples of primary-key columns that are identity columns.

7. SQL Server Authentication: Creating a Login

The lecture provides the following SSMS procedure for creating a username/password authentication login:

  1. Open SQL Server Management Studio and open Object Explorer.
  2. Select Server_instance_name → Security → Logins.
  3. Right-click Logins and choose New Login.
  4. On the General page, enter the name in the Login name field.
  5. Select SQL Server authentication.
  6. Enter a password for the user.

8. Error 18456 — Login Failed for User

The lecture identifies Error 18456 as “Login failed for user” and explains that an incorrect password can cause the error. It also notes that when SQL Server was installed using Windows Authentication and later changed to SQL Server and Windows Authentication, the sa login is initially disabled.

Remember

 18456 → Login failed for user.  Check the authentication mode and credentials when troubleshooting the issue described in the lecture. For a real production environment, use current Microsoft documentation when troubleshooting authentication because configuration details can vary by SQL Server version and setup.

Exam Practice — 30 Multiple-Choice Questions

Try all questions first. Then check the answer key. Questions are written as original revision questions from the concepts in the provided lecture material.

1. Which two software products are identified for the unit?  A. SQL Server 2019 database engine and SSMS  B. Oracle and DB  C. MySQL and Oracle  D. SSMS and a web browser 2. What is the main role of a database server in the lecture?  A. Connect printers  B. Store files/databases and provide services to clients  C. Create WAN cables  D. Replace all clients 3. Which three components are identified in a client/server system?  A. Client, server and network  B. CPU, RAM and SSD  C. LAN, WAN and Internet  D. Table, row and column 4. What does LAN stand for?  A. Large Area Network  B. Local Area Network  C. Linked Access Network  D. Local Authentication Network 5. What does WAN stand for?  A. Wide Area Network  B. Web Access Node  C. Wireless Application Network  D. Wide Authentication Node 6. What can a WAN connect?  A. Only one database table  B. LANs over a larger network  C. Only printers  D. Only SQL logins 7. What is an enterprise system in the lecture?  A. A single laptop  B. A client/server environment spanning systems in different geographical locations  C. A database column  D. A password policy 8. What is the relational database model concerned with?  A. Tables and relationships between tables  B. Only network cables  C. Only passwords  D. Only operating systems 9. What is the most critical property of a column according to the lecture?  A. Its color  B. Its data type  C. Its screen position  D. Its network address 10. What determines the type of information a column can store?  A. Data type

 C. Task Manager  D. Control Panel

21. Which Object Explorer path is used to reach Logins?  A. Security > Logins  B. Tables > Logins  C. Network > Logins  D. Reports > Logins 22. What do you select after right-clicking Logins?  A. New Login  B. New Table  C. New WAN  D. New Server 23. Which authentication option is selected in the lecture procedure?  A. SQL Server authentication  B. LAN authentication  C. WAN authentication  D. Table authentication 24. What error means 'Login failed for user'?  A. 18456  B. 2019  C. 404  D. 18457 25. What is one cause of Error 18456 identified in the lecture?  A. Incorrect password  B. Incorrect table color  C. Missing WAN  D. Wrong column width 26. What happens to the sa login in the situation described by the lecture after switching authentication modes?  A. It is initially disabled  B. It is automatically deleted  C. It becomes a table  D. It becomes a WAN 27. Which tool is used to manage SQL Server in the lecture?  A. SQL Server Management Studio  B. Paint  C. Notepad only  D. File Explorer only 28. Which item is NOT one of the three hardware components listed?  A. Network  B. Server  C. Client  D. Identity Seed 29. Which item is a column property rather than a network concept?  A. Identity Increment  B. WAN  C. LAN  D. Enterprise system 30. Which sequence best describes the study flow for this guide?  A. Learn → Test → Review  B. Delete → Install → Ignore

 C. Login → WAN → Print  D. Export → Delete → Install

9. What is an identity column? Answer:

10. Explain Identity Seed and Identity Increment. Answer:

11. Write the SSMS steps for creating a SQL Server authentication login. Answer:

12. What does Error 18456 indicate? Answer:

Quick Final Revision Checklist

☐ I can name SQL Server 2019 and SSMS. ☐ I can explain client, server and network. ☐ I can distinguish LAN from WAN. ☐ I understand the basic idea of relational tables and relationships. ☐ I know why data types matter. ☐ I can explain NULL versus a default value. ☐ I can explain identity columns, seed and increment. ☐ I can reproduce the login-creation procedure. ☐ I remember Error 18456 = Login failed for user. ☐ I can answer the practice questions without notes.

Source & Use Note

This study guide was reorganized and rewritten from the Database Programming: SQL Server 2019 Express lecture material supplied for this project. It is intended as a revision companion, not as a replacement for the original course material. Before commercial distribution on a platform such as Docsity, make sure you have the right to commercially distribute material derived from your course/lecturer's content and remove any third-party copyrighted material or links that you do not have permission to reproduce.