SQL Server: The hidden power of Surface Area Configuration Tool

Who is online?  53 guests and 0 members
home  »  articles  »  SQL Server: The hidden power of Surface Area Configuration Tool

SQL Server: The hidden power of Surface Area Configuration Tool

change text size: A A A
Published: 3/26/2011 7:47:08 PM by  Sarabpreet Anand  - Views:  [12926]

 

The hidden power of Surface Area Configuration Tool

SQL Server 2005 comes with a Surface Area Configuration tool. This tool allows you to Control services and features installed on the SQL Server Box. You need to have Administrative right in order to work on the SQL Server Configuration tool. The Surface Area Configuration tool can be used to start, stop, enable and disable various services and features associated with SQL Server. The SQL Configuration tool can be run against a local or remote machine.

 

Problem: This tool works perfectly fine if you want to manage an instance and want to reduce the surface area. But if you are in an environment where you need to manage many SQL Servers you probably don’t want to click 1000 times just to enable\disable a feature on all your servers.

 

Solution: Just to make your life easier there is a command line version of the tool available. This tool is also called as sac utility & this is very powerful. The tool can be invoked from the command prompt or can be called from a command batch file.

The sac utility imports and exports Microsoft SQL Server 2005 surface area settings. Using this utility, you can configure the surface area on one computer, and then apply the same settings to other computers.

 

The easiest way to use the sac utility is to use the SQL Server Surface Area Configuration graphical user interface to configure one computer, then use sac to export the settings of that computer to a file. You can then use sac to apply the settings for all SQL Server 2005 components to other SQL Server 2005 instances on the local computer or on remote computers.

You can find the command line version of the tool in the “c:\program files\Microsoft SQL Server\90\shared” folder. Make sure that folder is in the path, or specify the full path to the file when executing it.

 

The syntax for the command line version of the tool is as follows:

sac {in | out} filename [-S computer_name][-U SQL_login [–P SQL_ password]]   [-I instance_name ]  [-DE][-AS] [-RS] [-IS] [-NS] [-AG] [-BS] [-FT] [-F] [-N] [-T] [-O]  [-H | -?]

 

To Read full Parameter Detail:

http://msdn.microsoft.com/en-us/library/ms162800(SQL.90).aspx

http://www.SQLServerGeeks.com/Assets/Uploaded-CMS-Files/a49fccf3-3ed2-4cc3-8951-b8289f5e4b3asac-sarabpreet.jpg


Some Examples:

1.       Export All Default Instance Settings

The following example shows how to export all of the feature, connections, and service settings for the default SQL Server instance to the file server1.out. Because the example specifies a user name but no password, sac will prompt for a password.

sac out server1.out –S server1 –U admin –I MSSQLSERVER

Once the information is saved to the file, copy it to another server and import the settings.


2.       Import Feature Settings to Another Server

The following example imports only the feature settings from the file server1.out and applies them to the default SQL Server instance on server 2. Because this example does not provide a user name, sac uses Windows Authentication.

sac in server1.out –S server2 –F

 

3.       Export All Local Feature and Network Settings

The following example will export all feature and connection settings, but not service settings, for all SQL Server instances and components on the local server to the file server1.out.

sac out server1.out –F –N

 

The practical application of this would be

1.       If there are a lot of servers to customize, or a lot of servers from which to collect information. The command line version of the tool can save time. By using the command line version of the Surface Area Configuration tool, configuring multiple servers can be done more accurately in less time.

 

2.       You can also take the backup of your configuration & make use of it if you need to rebuilt your server i.e., in the event of any disaster.

 

APPLIES TO
MS SQL Server 2005

Regards,

Sarabpreet Singh 

tags : SAC, SQL Server 2005, Surface Area Configuration Tool
  To rate this article please  register  or  login

Author

Sarabpreet Anand Sarabpreet Anand (Member since: 3/15/2011 5:38:06 AM)
SQLServer-MVP, Vice President - SQLServerGeeks.com

Sarabpreet is SQLServer MVP, DBA, Speaker, Trainer, Blogger and Community Lead. You can find him speaking at a local UG Event or a SQL Webcast. He has 8+ years of Experience and worked with Industry Leaders like Wipro, HP and HCL. He has many SQL Certifications under his belt. His core competency lies in administration of SQL Server. Always ready to help, online \offline. His life’s mantra is “Knowledge Increases by sharing so, Pass it on”. To know about his speaking engagements visit: here...

Follow Sarab on  Twitter@Sarab_SQLGeek ,  Facebook ,  LinkedIn

Comments (5)

coooollll
4/1/2011 10:42:49 AM Muthukannan Ganesan said:

Hi sarab,

Really nice article.

I have been working with the client who makes the database server Movement periodically and it was quite hectic to carry out configurtion for me every time.. ( I have missed this SAC often).. :-)

i ll make use of this in future.

Thanks.

by
sarab
4/1/2011 11:28:46 AM Sarabpreet Anand said:

Glad to know my writeups are actually making Implementation\Admin easier for Individuals.

by
Sachin.Nandanwar
4/2/2011 6:19:06 AM Sachin Nandanwar said:

But from SQL 2008 SAC has been discarded and is replaced by FACET.

Didnt had so much hands off on FACET though.

by
sathiyaseelan
4/25/2011 7:39:36 AM sathiyaseelan sathiyaseelan said:

in 2008 if you right click on the instance name  you can find facets inside facets there is Surface area configuration..could you explain more about facets?

by
AmitBansal
4/25/2011 8:51:22 AM Amit Bansal said:

Facets are one of the components of Policy Based Management. The entire concept of PBM needs to be understood along with FACETS, Conditions and Policies!

by

Leave a comment

Name:
  *  
Email:  (your email is kept secure)
 *  
Website:

example: "http://www.SQLServerGeeks.com"

 
Type the characters:
 *
 
   

Training on Microsoft Products & Technologies

Email Subscriptions

   Get the Most Recent Blogs in your inbox
Articles RSS Feed

Most Recent Articles