All Articles -> SQL Server Administration

Advanced SQL Server 2008 Extended Events with Examples ( 25 May 2009 - Mladen Prajdić - 1 Comment)

Introduction to SQL Server 2008 Extended Events ( 19 May 2009 - Mladen Prajdić - 0 Comments)

Monitoring SQL Server Agent with Powershell ( 24 March 2009 - Mike Femenella - 1 Comment)

SQL Server Version ( 29 January 2009 - Bill Graziano - 23 Comments)

Scheduling Jobs in SQL Server Express - Part 2 ( 1 December 2008 - Mladen Prajdić - 21 Comments)

Alerts for when Login Failures Strike ( 14 July 2008 - Guest Authors - 3 Comments)

Using xp_ReadErrorLog in SQL Server 2005 ( 12 May 2008 - Guest Authors - 8 Comments)

Moving the tempdb database ( 5 November 2007 - Bill Graziano - 5 Comments)

Centralized Asynchronous Auditing across Instances and Servers with Service Broker ( 20 August 2007 - Mladen Prajdić - 6 Comments)

Centralized Asynchronous Auditing with Service Broker ( 16 July 2007 - Mladen Prajdić - 4 Comments)

SQL Server 2005 Best Practices on TechNet ( 4 December 2006 - Bill Graziano - 0 Comments)

Scripting Database Objects using SMO (Updated) ( 29 November 2005 - Bill Graziano - 13 Comments)

Troubleshooting Performance Problems in SQL Server 2005 ( 3 November 2005 - Bill Graziano - 0 Comments)

Dynamic Management Views ( 30 October 2005 - Bill Graziano - 0 Comments)

Using SHERLOCK to Monitor Blocking ( 2 August 2005 - Bill Graziano - 20 Comments)

Inside SQLOS ( 20 July 2005 - Bill Graziano - 0 Comments)

Featured Interview with Bob Ward, Microsoft PSS ( 30 June 2005 - Bill Graziano - 0 Comments)

XP SP2 and SQL Server ( 31 August 2004 - Bill Graziano - 0 Comments)

Microsoft SQL Server Health and History Tool ( 16 August 2004 - Bill Graziano - 5 Comments)

Server side tracing in SQL Server using system stored procedures ( 1 December 2003 - Bill Graziano - 0 Comments)

How to use the new function fn_get_sql() ( 16 October 2003 - Bill Graziano - 0 Comments)

PASS Chat on SQL Server Administration (10AM PT on 9/24/2003) ( 16 September 2003 - Bill Graziano - 6 Comments)

Who Needs Change Management? ( 15 June 2003 - Guest Authors - 0 Comments)

Microsoft SQL Server 2000 High Availability Series ( 31 December 2002 - Bill Graziano - 0 Comments)

SQL Server Audit ( 4 December 2002 - Bill Graziano - 1 Comment)

What's best for DBAs? GUI or T-SQL commands? ( 4 September 2002 - Bill Graziano - 4 Comments)

Life without model ( 28 July 2002 - Jasper Smith - 8 Comments)

Moving ALL SQL Server 2000 Data Structures ( 7 July 2002 - Jasper Smith - 0 Comments)

Comparing Tables ( 7 January 2002 - Bill Graziano - 8 Comments)

Stored procedure to track database file growth ( 7 December 2001 - Bill Graziano - 0 Comments)

SQL Server 2000 Operations Guide ( 25 September 2001 - Bill Graziano - 0 Comments)

What To Do When tempdb Is Full ( 23 August 2001 - Lance Harra - 3 Comments)

Finding SQL Servers running on a network ( 15 August 2001 - Lance Harra - 7 Comments)

Building and Managing 99.999% Reliable SQL Server Applications ( 29 July 2001 - Bill Graziano - 0 Comments)

Database Architecture: The Storage Engine ( 20 July 2001 - Bill Graziano - 0 Comments)

Controlling Jobs in Transact-SQL ( 18 September 2000 - Bill Graziano - 2 Comments)

Using the Information Schema Views ( 3 August 2000 - Bill Graziano - 13 Comments)

SQL Server and Read-Only Databases ( 5 July 2000 - Chris Miller - 4 Comments)

Subscribe to SQLTeam.com

Weekly SQL Server newsletter with articles, forum posts, and blog posts via email:

SQLTeam.com Articles via RSS

SQLTeam.com Weblog via RSS

- Advertisement -

- Sponsor's Message -

SQLShare.com Videos

Writing to the Registry from TSQL Using XP_Instance_RegWrite

Reading from the registry to figure out a configuration issue or two is common, but writing to the registry isn't something you'll need to do very often. Still, it's a useful trick to know and we've put it to work showing you how to alter the default folder used for database backups.

Using XP_Instance_RegRead To Get Default Database Path

SQL saves more than a few things to the registry and we can leverage that by reading those settings from TSQL using xp_instance_regread. Easy to use and only one minor quirk to learn, and you'll reading from the registry. Look for the follow up video that demonstrates how to write changes to the registry too.

How to Change the Default Path for New Databases

Typing CREATE DATABASE MyDB gets the job done, but it puts the files in whatever location has been set as the default - which means you should make sure the default is set to a good place, or specify them as part of the CREATE. We'll show you how to adjust the setting (and we've got a video coming up that shows you how to change it from code too!).

Overview of Data Driven Subscriptions in Reporting Services

Subscriptions are a powerful feature of Reporting Services because they allow users to decide which reports to receive. But what do you do when the boss wants a report sent to a group of users, perhaps based on some additional criteria that frequently changes? That's where data driven subscriptions make sense and in our lesson today Devin does a nice overview of the options and requirements.

Using DatePart and DateName

Ever want to get the month out of a date as a number, or as literal text? Many people will do it by parsing the date as a string, but we've got some built in functions that will do it cleanly and consistently.