Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In these exercises, you ll use SQL Server Management Studio to create the MyGuitarShop database, to review the tables in the MyGuitarShop database, and to
In these exercises, youll use SQL Server Management Studio to create the
MyGuitarShop database, to review the tables in the MyGuitarShop database, and to enter
SQL statements and run them against this database.
Create the database
Start SQL Server Management Studio and open a connection using either Windows
or SQL Server authentication.
Open the script file named CreateMyGuitarShop.sql thats in the MGS Exercise
Starts directory by clicking the Open File button in the toolbar and then using the
resulting dialog box to locate and open the file.
Execute the entire script by clicking the Execute button in the SQL Editor toolbar or
by pressing F When you do the Messages tab indicates whether the script executed
successfully.
Review the database
In the Object Explorer window, expand the node for the database named
MyGuitarShop so you can see all of the database objects it contains. If it isnt
displayed in the Object Explorer window, you may need to click on the Refresh
button to display it
View the data for the Categories and Products tables.
Navigate through the database objects and view the column definitions for at least the
Categories and Products tables.
Enter and run SQL statements
Open a new Query Editor window by clicking the New Query button in the toolbar.
Then, select the MyGuitarShop database from the Available Databases dropdown
menu Crtl U to choose it as the default database.
Enter and run this SQL statement:
SELECT ProductName FROM Products
Delete the e at the end of ProductName and run the statement again. Note the error
number and the description of the error.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started