Archives: December 2011
2011 was a great year on a personal and professional level
1) Completed the Brighton Marathon in 4hrs 36 secs
3) More time spent on Database Architecture projects
4) Read more books for recreation
5) My favourite SQLServer-DBA.com posts this year were:
2011 is nearly over. It’s time to list the Top 10 viewed SQLServer-DBA.com posts for the year , based on Views.
- System Reserved Partition and monitoring
- Data Loading Performance Guide
- Mobile Commerce and SQL performance Tuning
- Index Disabled and Index Rebuild
- How to report a SQL Server performance problem…
After a server move to the failover Data Centre – a file copy between the two sites slowed down by 6x. I ran the copy a few times to confirm the slow down.
The file is part of a SQL Server ETL process. The ETL process transforms the data and… Read more
Network card teaming or NIC teaming are networking terms describing methods of combining multiple parallel network connections . The main purposes are 1) increasing throughput beyond a single connection and 2) redundancy.
The three main teaming configurations
Network Fault Tolerance (NFT)
1) Two – Eight Physical NICS are teamed… Read more
I document the CPU Count for SQL Server inventory management.
Using a powershell script , iterate through all the SQL Servers and capture the CPU count with the following t-sql.
----Returns the logical cpu count on server SELECT cpu_count FROM sys.dm_os_sys_info ----Ratio of the number of logical or physical cores…
Sometimes end users interchange the terms : C2 auditing and Traces.
They server different purposes.
c2 auditing records all attempts (successfull and failed) on objects and statements. Typically a SQL Server DBA will use a c2 audit to monitor security compliance .
A trace will will monitor an event or… Read more
I was creating a Powershell script for a SQL Server checkout procedure after a reboot , and used the state_desc column in sys.databases view to report on the database status.
The descriptions , courtesy of BOL are:
ONLINE - Database is available for access
RESTORING – One or more… Read more
Latency is the time delay measure in the system. SQL Server can only be as fast as the slowest component in the system.
Database servers are particularly sensitive to disk IO speeds. For example, introducing an SVC system may speed up writes , but will add a cost to Reads. Read more
To make the T-SQL function DATEADD more dynamic use variables. The example below , accepts an input parameter , in this case “4”.
All events older than 4 months from now will be deleted.
DECLARE @months int SET @months = 4 DELETE FROM [Events] WHERE [EventDate] < DATEADD (month,-1*@months,…
An XA transaction is a global transaction usually covering multiple resources.
Use the Microsoft SQL Server JDBC Driver to support the Java Platform based distributed transactions
Steps to enable XA transactions
1) Enable MSDTC
On Windows 2003 > Start > Run > “dcomconfg” > Expand Component Services > Expand Computers… Read more
On Windows 2008 R2 , a System Reserved Partition is created. It is 100 MB and acts as a preparatory step for implementing Bitlocker. The installation doesn’t install Bitlocker. BitLocker is a disk encryption method for full disk encryption.
The System Reserved Partition can cause problems in some monitoring tools.… Read more
Table variables and Temporary tables are used interchangeably – but they were designed for different purposes.
Temporary tables were designed for storage and manipulation of temporal data.
Table variables were designed to return User Defined Function (UDF) datasets.
Which type should be used ?
If I estimate the data sets… Read more