Adsense_01

Saturday, 6 February 2010

SQL Server Advanced Options

Part -II - Configurations - Management Studio and sp_configure

In my previous article you should have been familiar with the query sp_configure to see the default values of all the list

of 16 options. Let us see the Advanced options here.

By default the show advanced options will have 0 in its value. To see and set the advanced options this has to be changed

to 1 and it can be changed back to 0 once done. The query for changing the option is

sp_configure 'show advanced options', 1
go
reconfigure

This query will change the config_value option to 1 and reconfigure will send the command to reload all of the values. Once

the value is changed to 1 and by running sp_configure again will display an extended list of 68 in SQL Server 2008 and 70

in SQL Server 2008 R2.

I am going to take you through some of the most commonly used options.

AWE

Friday, 5 February 2010

Instances in SQL Server

 

Instance is nothing but SQL Server Installation. In SQL Server 7.0 only one installation was allowed and this changed from 2000 Version onwards. Default instance is nothing but connecting to SQL Server using the computer name. Where as the named instance such as Mani will have computername\mani. For example if the computer name is MyServer then the named instance would be MyServer\Mani. Now I can install many number of named instances and the maximum is based on the edition that you use. The list is provided below for each edition.

The port used by default instance is always 1433 and named instances use dynamic allocation.

The total number of instances including the default instance of SQL Server supported by all editions differ. The following gives a clear idea of the supported instances for each editions.

Enterprise - 50

Developer - 50

Standard - 50

Workgroup - 16

Express - 16

Note: Windows Failover Cluster supports only 25 instances.

Configurations - Management Studio and sp_configure

 

Comparing these two there are far more configuration options available using sp_configure. sp_configure is nothing but a query run in a query window in a Management studio. But the server properties can be changed using this query and here are some of the examples.

Once sp_configure query is executed the following 16 options are displayed with its default values. By changing these values the advanced configurations can be set up here.

sp_configure

I will show the detailed options in my next post for most of them. Till then good luck on your search on my blog.

Monday, 1 February 2010

SQL Server 2008 Tools & Components

 

For every installation of SQL Server we have to customize according to what has to be installed and for what purpose. The following are the list of components available in SQL Server.

1. Database Engine:
This is the core component which stores, manipulates & manage data. Other features include relational, XML, full text search and replication.

2. Integration Services:
Integration services is responsible for ETL Layer. ETL stands for Extraction, Transformation & Loading. This component is used for extracting the data from the source system, transform accordingly and load it into the database in the 1st component.

3. Analysis Services:
Once the data is available in 1st component via the ETL layer in the second component, not all the shcema is in ready to us and hence those are processed and managed by creating Online Analytical Processing (OLAP) analysis and data mining model for Business Intelligence purpose.

4. Reporting Services:
Whatever transformation is done in 2nd component & 3rd component we need an end user component to see the result and this is achieved as interactive, tables, graphical representations, charts through Reporting services.

The following are the available tools in SQL Server
1. SQL Server Management Studio (SSMS)
This is the management tool to manage all the core components which we saw above.

2. Business Intelligence Development Studio (BIDS)
This tool allows a developer to develop cubes (Analysis Services), integration service packages, reports.

3. SQL Server Configuration Manager
Managing the connectivity components such as Server Network Utility, Client Network Utility, Service Manager is done using this tool. All the connectivity components was separate features in 2005 version and backwards.

4. SQL Server Profiler
All the events occured in SQL Server can be traced and saved for future use using this tool.

5. Database Engine Tuning Advisor
Shortly called DTA is used too analyse the load on the engine. The recommendations provided by DTA can be used to improve the query performance for the same query.

6. Command Prompt Utilities
This is another powerful utility that can be accessed via DOS prompt. You can go to cmd.exe and execute the following commands that have its unique magic work done without the knowledge of T-SQL.

A. bcp - bulk copy of data

B. dta - Database Engine Tuning Advisor

C. dtexec - configure and execute SSIS packages

D. dtutil - Manage SSIS package

E. sqlcmd - command line to execute T-SQL statements

F. rs - Manage Reporting services server

G. rsconfig - manage & configure report server connection

H. rskeymgmt - manage encryption keys on report server

I. sqlagent90 - to start SQL Server Agent

J. SQLdiag - Diagnostic collection by Microsoft

K. sqllogship - Operational tasks like copy, restore, backup operations

L. sqlservr - start and stop the database engine for an instance

M. Ssms - to open SSMS

N. sqlps - to run PowerShell commands

O. tablediff - capable of comparing data from 2 tables in replication topology.