Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
