0% found this document useful (0 votes)
10 views

Lab Answer Key - Module 1 - Introduction to Microsoft SQL Server 2014

Uploaded by

ronaldoottoni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Lab Answer Key - Module 1 - Introduction to Microsoft SQL Server 2014

Uploaded by

ronaldoottoni
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

09/03/2021 Lab Answer Key: Module 1: Introduction to Microsoft SQL Server 2014

Destaque Anotação
Lab Answer Key: Module 1: Introduction to Microsoft SQL Server 2014

Lab: Working with SQL Server 2014 Tools

Exercise 1: Working with SQL Server Management Studio


Es
s
ed
oc
Nã um
o é Microsoft
Task 1: Open e SQL Server Management Studio
pe ron nto
rm a pe
itid ldoo rten
or tto ce
ea n aR
liza i@g on
1. Start SQL Server Management rc ma Studio. ald
óp il
ias .com o Ot
nã ton
2. In the Connect to Server window, o a click Cancel. i.
uto
riz
ad
3. Close the Object Explorer window by clicking as the close icon.
!

4. Close the Solution Explorer window by clicking the close icon.

5. Open the Object Explorer window by selecting Object Explorer on the View menu (or press F8 on the
keyboard).
Es
se
6. Open the do
Solution
Nã cu Explorer window by selecting Solution Explorer on the View menu (or press Ctrl+Alt+L
o me
ép
on the keyboard). r nt
erm na o pe
o
itid l d o rte
o r otto nce
ea n aR
liza i@g
rc ma ona
óp il ld
Task 2: Configure the Editor Settings ias .com o Ot
nã ton
oa i.
uto
riz
ad
as
1. On the Tools menu, select Options to open ! the Options window in SQL Server Management Studio.

2. Expand the Environment option and select Fonts and Colors. In the Show settings for box, select Text
Editor and set the font size in the Size box to 14.

3. In the left
Espane, expand the Text Editor option, expand the Transact-SQL option, and select IntelliSense.
se
Under Transact-SQL
do IntelliSense Settings, clear the Enable IntelliSense check box.
Nã cu
oé me
ro nto
4. In the leftpepane,
rm nselect
ald the pe Tabs option under Text Editor and Transact-SQL. In the Tab frame, change the
itid oo rten
Tab size property o r to 6.tto ce
ea n aR
liza i@g
rc ma ona
5. In the left pane, expand Query óp iResults,
l ld expand SQL Server, and select Results to Grid. Enable the option
ias .com o Ot
Include column headers when nã copying tor on saving the results by selecting the check box.
i.
oa
uto
riz
6. Accept the changes by clicking the OK button. ad
as
!

Result: After this exercise, you should have opened SSMS and configured editor settings.

Es
se
Exercise 2: Creating and Organizing T-SQL scripts
do
Nã cu
o me
ép r o nto
erm n ald per
itid o te
o r otto nce
Task 1: Create a Project
ea ni@ aR
liza o
r c gmai nald
óp l.c
ias om o Ot
t
1. On the File menu, select New and click Project.

2. In the New Project window, type MyFirstProject in the Name text box and D:\Labfiles\Lab01\Starter in the
https://www.skillpipe.com/#/reader/urn:uuid:91ddbb8d-bb35-443c-9b77-1e5f0f71fa17@2020-12-11T07:01:36Z/content 1/3
09/03/2021 Lab Answer Key: Module 1: Introduction to Microsoft SQL Server 2014

Location text box. Click the OK button to create the new project.

3. In the Solution Explorer window, right-click the Queries folder under MyFirstProject and select New Query.

4. In the Connect to Database Engine Dialog box, click Cancel.

5. Right-click the query file SQLQuery1.sql under the Queries folder, choose Rename, and type
MyFirstQueryFile.sql as the new name for the file.

6. Es menu, select Save All.


On the File
se
do
Nã cu
oé me
pe ron nto
rm a pe
itid ldoo rten
Task 2: Add an Additionalo t on ceFile
rea tQuery aR
liza i@g
rc ma ona
óp il ld
ias .com o Ot
nã to
1. In the Solution Explorer window, o aright-clicknthei. Queries folder under MyFirstProject and select New Query.
uto
riz
ad
2. In the Connect to Database Engine Dialog as box, click Cancel.
!

3. In the Queries folder, right-click the query file SQLQuery1.sql, choose Rename, and type
MySecondQueryFile.sql as the new name for the file.

4. Click File Explorer on the taskbar.


Es
se
5. In Windows do
Explorer, navigate to the folder D:\Labfiles\Lab01\Starter \MyFirstProject\MyFirstProject and
Nã cu
oé me
observe the created
ro n files.
to
pe
rm nald pert
itid oo en
rea ttoni@ ce
6. In the Solution oExplorer window a R in SQL Server Management Studio, right-click the query file
liza g on
m
r c andaselect
MySecondQueryFile.sql óp il.c alRemove.
d When the confirmation dialog appears, click the Remove
ias om o Ot
button. nã ton
oa i.
uto
7. In Windows Explorer, press F5 to refresh riz the Windows Explorer window and notice that the file
ad
as
MySecondQueryFile.sql is still there. !

8. In the Solution Explorer window in SSMS, right-click the query file MyFirstQueryFile.sql and select
Remove. When the confirmation dialog appears, click the Delete button.

9. In Windows
Es Explorer, press F5 to refresh the Windows Explorer window. Notice that the file
se
do
MyFirstQueryFile.sql was deleted from the file system.
Nã cu
oé me
ro nto
pe
rm nald pert
itid o e
o r otto nce
ea ni@ aR
Task 3: Reopen the Created liza Project o
r c gmai nald
óp l.c
ias om o Ot
nã ton
oa i.
u
1. On the File menu, select Save All. toriz
ad
as
!
2. On the File menu, select Exit to close the project and SSMS.

3. Click Start, click the Down arrow, expand All Programs, scroll to the right to the Microsoft SQL Server 2014
group, and click SQL Server 2014 Management Studio.

4. Es
In the Connect to Server window, click Cancel.
se
do
Nã cu
o éFile menu, me
5. On the click Open and click Project / Solution. In the Open Project window, select the project
pe r on nto p
r mi a e
tid ldoot rtenc
D:\Labfiles\Lab01\Starter\MyFirstProject\MyFirstProject.ssmssln.
or t
ea oni@ e a R
liza o
6. Click Open. r c gmai nald
óp l.c
ias om o Ot
t
7. In Windows Explorer, navigate to the folder D:\Labfiles\Lab01\Starter\MyFirstProject\MyFirstProject. Drag the
file MySecondQueryFile.sql to the Queries folder in the Solution Explorer window in SSMS.

https://www.skillpipe.com/#/reader/urn:uuid:91ddbb8d-bb35-443c-9b77-1e5f0f71fa17@2020-12-11T07:01:36Z/content 2/3
09/03/2021 Lab Answer Key: Module 1: Introduction to Microsoft SQL Server 2014

8. On the File menu, select Save All.

Result: After this exercise, you should have a basic understanding of how to create a project in SSMS and add
query files to it.

Exercise 3: Using Books Online


Es
eds
oc
Nã um
o é Books
Task 1: Launch eOnline
pe ron nto
rm a pe
itid ldoo rten
or tto ce
ea n aR
liza i@g on
1. On the virtual machine,r press mthe
ail Windows
a key, and type manage help settings and click Manage Help
có .co ldo O
pia
Settings. sn m tto
ão ni.
au
tor
2. In the Help Library Manager window,izselect ad Choose online or local help.
as
!
3. Under Set your preferred help experience, click I want to use online help and click the OK button to
confirm.

4. Click the Exit button to leave the Help Library Manager window.
Es
s
ed
oc
Nã um
oé en
Task 2: Use Books
pe roOnline to
rm nald pert
itid oo en
or t c
ea toni@ e a R
liza on
r cthegWindows
m ald key, and type sql server documentation and click SQL Server
On the virtual machine, press óp ail.c
ias om o Ot
Documentation. nã ton
oa i.
uto
riz
ad
a
If Online Help Consent dialog box appears, clicksYes ! to continue.

In the left pane of the Books Online for SQL Server 2014 website, expand Books Online for SQL Server 2014
and expand Getting Started (SQL Server 2014).
Es
eds
Click Documentation oc for SQL Server 2014 Tools and Add-in Components.
Nã um
oé e
pe ron nto
rm ald per
itid o te
Browse the help article. o r otto nce
ea n aR
liza i@g
rc ma ona
óp il ld
ias .com o Ot
nã ton
Shut down Internet Explorer. oa i.
uto
riz
ad
as
!
Result: After this exercise, you should have a basic understanding of how to find information in Books Online.

Es
s ed
oc
Nã um
o ép en
r t
erm ona o pe
itid l d o rte
o r otto nce
ea ni@ aR
liza o
r c gmai nald
óp l.c
ias om o Ot
t

https://www.skillpipe.com/#/reader/urn:uuid:91ddbb8d-bb35-443c-9b77-1e5f0f71fa17@2020-12-11T07:01:36Z/content 3/3

You might also like