IT tutorials
 
Database
 

Configuring SQL Server 2012 : Setting the Options (part 3) - Configuring the Connection, Surface Area Configuration Facets

1/8/2014 6:54:17 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

Configuring the Connection

Many of the connection-level options configure ANSI compatibility or specific connection-performance options.

Connection-level options are limited in scope. If the option is set within an interactive session, then the setting is in force until it's changed or the session ends. If the option is set within a stored procedure, then the setting persists only for the life of that stored procedure.

The connection-level options are typically configured by means of the SET command. The following code configures how SQL Server handles nulls within this current session:

SET ANSI_NULLS OFF;

Result:

Command(s) completed successfully. 

Connection properties can also be checked by means of the SessionProperty() function:

Select SESSIONPROPERTY ('ANSI_NULLS');

Result:

0

Management Studio enables you to set several query properties. You can review and set these properties for current queries by clicking the Query menu and then Query Options. For all future connections, review and set the properties by clicking the Tools menu and then Options. Figure 3 shows an example of the ANSI settings that SQL Server uses to run the queries.

Figure 3 The ANSI settings that SQL Server uses to run your queries.

19.3

Tip
To view current settings of connection-level options, query the sys.dm_exec_connections dynamic management view.

4. Surface Area Configuration Facets

In SQL Server 2005 you were introduced to the Surface Area Configuration Wizard. This simple wizard enabled you to quickly lock down common security attack vectors in SQL Server.

When 2008 was released, that wizard was then replaced by the functionality of Policy-Based Management. The Surface Area Configuration Wizard's tasks were then made into facets within Policy-Based Management. You can use these facets to create policies that dictate the status of the various features previously controlled by the Surface Area Configuration Wizard, as shown in Figure 4.

Figure 4 The Surface Area Configuration facet exposes properties that enable you to allow or disallow features.

19.4
 
Others
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us