Lab 2014
Lab:
Task 1:
1.
with
2. In the
3. Click
wait
Task 2:
1. On
2. When
3. If
4. In
5.
Answer ServerDatabase
Using
Exercise
Prepare
Ensure are both
running, ADVENTUREWORKS\Student
the
D: click Run as
administrator
Yes file, and then
for
Use
the
prompted,
authentication.
Object
Object databases that are
hosted
Right-click click Server
Dashboard
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
1 of 12 26/09/2016 15:58
Task 3:
1.
2. In the
OK.
3. View
1.
2.
3. Click
you
4. Save
Task 5:
1. In
2. In the
AW
3. If
4. In
to the
Create
Under MI Database.
New Then click
the database
has been
Task 4: Run
In SQL
Enter the
EXEC
Execute AWDatabase
created
the folder.
Create
SQL click Project.
New the project as
Project
Solution Explorer.
Solution Then connect
MIA-SQL
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
2 of 12 26/09/2016 15:58
5. In
3. Enter
Solution the query is
created, BackupDB.sql
6. In Object previously, point
to Tasks
7. In the Back drop-down list,
select Script
8. Paste the
9. Edit the \Labfiles\Lab01
\Starter\AWDatabase.
10. On the Solution.
11. Minimize
Result: At ManagementStudio project
Exercise
Task 1: Use
1. Right-click
2. In the command details of all
sqlcmd
sqlcmd
the using Windows
authentication:
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
3 of 12 26/09/2016 15:58
sqlcmd
4. In the sqlcmd databases on
MIA-SQL. in the
previous
SELECT
GO
5. Enter the
Exit
Task 2: Use
1. In the command sqlcmd to run the
GetDBInfo
sqlcmd
\GetDBInfo.
2. Note that command
prompt
3. Enter the
sqlcmd
\GetDBinfo.
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
4 of 12 26/09/2016 15:58
4. Enter
5. To
the sqlcmd:
Notepad
5. View the
6. Close the
Result: At database.
Exercise
Task 1: Use
1. On the
2. At the Windows
Get-Process
3. Review services.
4. Enter the “SQL”,:
Get-Process
find
Get-Help
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
5 of 12 26/09/2016 15:58
6.
7.
8. Close
Task 2:
Review
Get-Process
Verify that
Windows
Using
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
6 of 12 26/09/2016 15:58
1. In
click
2. At the
3.
4.
5.
6.
7.
8.
SQL MIA-SQL, and then
Start
PowerShell
Get-Module
Verify that
At the Windows
Set-location
At the Windows display the SQL
Server
Get-ChildItem
At the Windows
Set-location
At the Windows display the
databases
Get-ChildItem
At the Windows
Invoke-Sqlcmd
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
7 of 12 26/09/2016 15:58
9.
10.
Review
Close the Management Studio
without
Task 3: Create
1. On the Windows
PowerShell
2. In the PowerShell
Get-Module
3. Verify that command to load
it:
Import-Module
4. Enter the loaded.
Get-Module
5. If the Commands Command
Add-on
6. View the tasks such
as backing
7. If the Script
8. In the Script IntelliSense feature.)
Import-Module
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
8 of 12 26/09/2016 15:58
9. Click
take a
Set-location
Get-Childitem
IndexSpaceUsage
Run script may
few
10. Close the example:
Import-Module
Set-location
Get-Childitem
IndexSpaceUsage
\Database
11. Save the folder. Then close
the PowerShell
12. In the D: click Run
with PowerShell
13. When the results.
14. Close Notepad.
Result: At informationabout databases
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
9 of 12 26/09/2016 15:58
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
10 of 12 26/09/2016 15:58
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
11 of 12 26/09/2016 15:58
Lab Answer Key: Module 1: Introduction to SQL Server 2014 Databa... https://skillpipe.courseware-marketplace.com/reader/fr-FR/Book/Book...
12 of 12 26/09/2016 15:58