Sie sind auf Seite 1von 45

7/23/2019 Print content

Administering Microsoft SQL Server 2012 Databases

Configure Additional SQL Server Components

Introduction
Configure Full-Text Indexing
Configure SSIS Security
Configure FILESTREAM
Summary

Introduction
The Configure Additional SQL Server Components module provides you with the
instruction and server hardware to develop your hands on skills in the defined topics.
This module includes the following exercises:

Configure Full-Text Indexing


Configure SSIS Security
Configure FILESTREAM

This lab now includes a SQL 2014 device, this means you can now carry out the
steps in SQL 2012 and SQL 2014. Notes have been included where any differences
in the steps may occur.

Lab time: It will take approximately 30 minutes to complete this lab.

Lab Diagram

During your session you will have access to the following lab configuration. Depending
on the exercises you may or may not use all of the devices, but they are shown here in the
layout to get an overall understanding of the topology of the lab.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 1/45
7/23/2019 Print content

Connecting to your Lab

In this module you will be working on the following equipment to carry out the steps
defined in each exercise.

PLABSQL01 (SQL Server 1)


PLABSQL02 (SQL Server 2)

For SQL 2014 you will use the following device:

PLABSQL03 (SQL Server 3)

To start, simply choose a device and click Power on. In some cases, the devices may
power on automatically.

For further information and technical support, please see our Help and Support
page.

Copyright Notice
This document and its content is copyright of Practice-IT - © Practice-IT 2014. All rights reserved. Any
redistribution or reproduction of part or all of the contents in any form is prohibited other than the
following:
1) You may print or download to a local hard disk extracts for your personal and non-commercial use
only.
2) You may copy the content to individual third parties for their personal use, but only if you
acknowledge the website as the source of the material. You may not, except with our express written

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 2/45
7/23/2019 Print content

permission, distribute or commercially exploit the content. Nor may you transmit it or store it in any
other website or other form of electronic retrieval system.

Exercise 1 - Configure Full-Text Indexing


In this exercise, you will perform the tasks required to configure additional SQL Server
components. To better understand these tasks, please refer to your course material to
gain an understanding of this topic.

SQL 2014 Note: To complete the following steps in SQL 2014, you will need to
replace the AdventureWorks2012 database name with AdventureWorks2014
in all the instances in text as well as code.

Task 1 - Configure Full-Text Indexing

To configure full-text indexing, perform the following steps:

Step 1
Ensure you have powered on the required devices and connect to PLABSQL01.

Double-click SQL Server Management Studio on the desktop.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 3/45
7/23/2019 Print content

Step 2
In the Connect to Server dialog box, enter PLABSQL01 in the Server name text
box, if already not entered, and click Connect.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 4/45
7/23/2019 Print content

Step 3
After the connection is successful, the PLABSQL01 server is displayed in Object
Explorer.

Now expand Databases, AdventureWorks2012, and Tables.

SQL 2014 Note: To complete the following steps in SQL 2014, you will need to
replace the AdventureWorks2012 database name with AdventureWorks2014
in all the instances in text as well as code.

Next, right-click HumanResources.Employee, select Full-Text Index, and then


select Define Full-Text Index.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 5/45
7/23/2019 Print content

Step 4
The Full-Text Indexing Wizard is displayed. Click Next.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 6/45
7/23/2019 Print content

Step 5
On the Select an Index screen, keep the default Unique index value and click Next.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 7/45
7/23/2019 Print content

Step 6
On the Select Table Columns screen, select Gender and LoginID and click Next.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 8/45
7/23/2019 Print content

Step 7
On the Select Change Tracking screen, keep the default option, Automatically, and
click Next.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 9/45
7/23/2019 Print content

Step 8
On the Select Catalog, Index Filegroup, and Stoplist screen, keep the default
catalog settings and click Next.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 10/45
7/23/2019 Print content

Step 9
On the Define Population Schedules (Optional) screen, click New Table
Schedule.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 11/45
7/23/2019 Print content

Step 10
The New Full-Text Indexing Table Schedule dialog box is displayed.

Enter PLAB in the Name text box and click OK.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 12/45
7/23/2019 Print content

Step 11
Note that a new schedule with the name Employee.PLAB has been added.

Click Next.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 13/45
7/23/2019 Print content

Step 12
On the Full-Text Indexing Wizard Description screen, click Finish.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 14/45
7/23/2019 Print content

Step 13
On the Full-Text Indexing Wizard Progress screen, click Close.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 15/45
7/23/2019 Print content

Step 14
Minimize SQL Server Management Studio window.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 16/45
7/23/2019 Print content

Close all open windows and leave the devices you have powered on in their current state
and proceed to the next exercise.

Exercise 2 - Configure SSIS Security


To configure SSIS security, perform the following steps.

SQL 2014 Note: To complete the following steps in SQL 2014, you will need to
replace the AdventureWorks2012 database name with AdventureWorks2014
in all the instances in text as well as code.

Task 1 - Setting up SSIS Security

Step 1
https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 17/45
7/23/2019 Print content

From PLABSQL01 click Start and search for Dcomcnfg.exe on the Start screen.

Step 2
The Component Services window is displayed.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 18/45
7/23/2019 Print content

Step 3
Expand the Component Services, Computers, My Computer, and DCOM Config
nodes, scroll down the list and locate Microsoft SQL Server Integration Services
11.0.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 19/45
7/23/2019 Print content

Step 4
Right-click Microsoft SQL Server Integration Services 11.0 and select
Properties.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 20/45
7/23/2019 Print content

Step 5
The Microsoft SQL Server Integration Services 11.0 Properties dialog box is
displayed.

Click Security tab.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 21/45
7/23/2019 Print content

Step 6
On the Security tab, click Edit in the Launch And Activation Permissions section.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 22/45
7/23/2019 Print content

Step 7
The Launch and Activation Permissions dialog box is displayed.

Select Administrators in the Group or user names section.

Note that the Administrators group has all permissions.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 23/45
7/23/2019 Print content

Step 8
Select SYSTEM in the Group or user names section.

Select Remote Launch, and Remote Activation check boxes.

Click OK.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 24/45
7/23/2019 Print content

Step 9
Click OK to close the Microsoft SQL Server Integration Services 11.0 Properties
dialog box.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 25/45
7/23/2019 Print content

Step 10
Close the Component Services window.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 26/45
7/23/2019 Print content

Leave the devices you have powered on in their current state and proceed to the next
exercise.

Exercise 3 - Configure FILESTREAM


To configure FILESTREAM, perform the following steps.

SQL 2014 Note: To complete the following steps in SQL 2014, you will need to
replace the AdventureWorks2012 database name with AdventureWorks2014
in all the instances in text as well as code.

Task 1 - Set up Filestream in SQL Server 2012

Step 1
https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 27/45
7/23/2019 Print content

From PLABSQL01 click Start, select All Programs, Microsoft SQL Server 2012,
and Configuration Tools, and then click SQL Server Configuration Manager.

Step 2
The SQL Server Configuration Manager (Local) window is displayed.

In the left pane, select SQL Server Services.

In the right pane, right-click SQL Server (MSSQLSERVER) and select Properties.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 28/45
7/23/2019 Print content

Step 3
The SQL Server (MSSQLSERVER) Properties dialog box is displayed.

Click the FILESTREAM tab.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 29/45
7/23/2019 Print content

Step 4
Note that Enable FILESTREAM for Transact-SQL access is selected.

Select Enable FILESTREAM for file I/O access and click OK.

Keep SQL Server Configuration Manager open.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 30/45
7/23/2019 Print content

Step 5
Restore SQL Server Management Studio from taskbar.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 31/45
7/23/2019 Print content

Step 6
Right-click PLABSQL01 in Object Explorer and select New Query.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 32/45
7/23/2019 Print content

Step 7
Enter the following query:

EXEC sp_configure filestream_access_level,2


RECONFIGURE

Click Execute.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 33/45
7/23/2019 Print content

FILESTREAM access level is now changed.

Step 8
Switch to SQL Server configuration Manager.

Restart ALL services related to your SQL instance which is “MSSQLSERVER.”

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 34/45
7/23/2019 Print content

Step 9
Switch to Microsoft SQL Server Management Studio.

Right-click AdventureWorks2012 and select New Query.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 35/45
7/23/2019 Print content

Step 10
Enter the following query:

USE master
GO
ALTER DATABASE AdventureWorks2012 ADD
FILEGROUP FileStreamFileGroup CONTAINS FILESTREAM;
GO

Click Execute.

SQL 2014 Note: To complete the following steps in SQL 2014, you will need to
replace the AdventureWorks2012 database name with AdventureWorks2014

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 36/45
7/23/2019 Print content

in all the instances in text as well as code.

The command is successfully completed.

Close all query windows.

Step 11
When asked if you want to save the query, click No.

Keep SQL Server Management Studio open.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 37/45
7/23/2019 Print content

Leave the devices you have powered on in their current state and proceed to the next
task.

Task 2 - Create a FileTable

To create a FileTable, perform the following steps:

Step 1
On PLABSQL01, click Windows Explorer on taskbar.

Expand Local Disk C drive and create a folder called test.

Close Windows Explorer.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 38/45
7/23/2019 Print content

Step 2
From PLABSQL01 while SQL Server Management Studio is open, click New
Query in the menu bar.

In the query window, enter the following code to create a new database:

CREATE DATABASE FileTableDB


ON PRIMARY
(Name = FileTableDB,
FILENAME = 'c:\test\FTDB.mdf'),
FILEGROUP FTFG CONTAINS FILESTREAM
(NAME = FileTableFS,
FILENAME='c:\test\FS')
LOG ON
(Name = FileTableDBLog,
https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 39/45
7/23/2019 Print content

FILENAME = 'c:\test\FTDBLog.ldf')
WITH FILESTREAM (NON_TRANSACTED_ACCESS = FULL,
DIRECTORY_NAME = N'FileTableDB');
GO

Click Execute.

Step 3
Click New Query button.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 40/45
7/23/2019 Print content

Step 4
Enter the following query in a new query window to enable FILESTREAM:

SELECT DB_NAME(database_id),
non_transacted_access,
non_transacted_access_desc
FROM sys.database_filestream_options;
GO

Click Execute.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 41/45
7/23/2019 Print content

Note the result.

Step 5
Click again on New Query button.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 42/45
7/23/2019 Print content

Step 6
To create a FileTable, enter the following code:

USE FileTableDB
GO
CREATE TABLE FileTableTb AS FileTable
WITH
(FileTable_Directory = 'FileTableTb_Dir');
GO

Click Execute:

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 43/45
7/23/2019 Print content

Note the result.

Step 8
In the left pane, expand the new database, FileTableDB, and then expand Tables and
FileTables. Note that a new FileTable is created.

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 44/45
7/23/2019 Print content

Shutdown all virtual machines used in this lab, by using the power functions located in
the Tools bar before proceeding to the next module. Alternatively you can log out of the
lab platform.

Summary
In this module, you covered carried the following practical tasks:

Configuring full-text indexing


Configuring SSIS security
Configuring FILESTREAM
Creating FileTable

https://www.practice-labs.com/authenticated/vNext/vn-print-content.aspx 45/45

Das könnte Ihnen auch gefallen