SQL Server Magazine June 2009

    Options
More SQL Server Solutions From the Field
Readers share solutions for detecting broken database objects, determining the average number of days between orders, importing and exporting SSIS packages, finding strings, and avoiding referential integrity errors when deleting database records.
  Subscribe
Renew
Master CD
Change Mailing Address
Customer Service
Back Issues
Article Reprints
Group Discounts

Browse Archived Articles By: Issue | Author | Subject | Department |



[Features]

Rebuild Indexes Online

Avoid blocking and table locking by using this job to rebuild indexes online.

SQL Server 2008’s T-SQL Development and Debugging Features

SQL Server 2008’s IntelliSense, debugging, and code outlining features take some of the hassle out of writing T-SQL scripts and stored procedures.

Synchronize Metadata Across SQL Server Database Copies

Tracking changes when you have several copies of a database can be a huge chore. These step-by-step instructions will let you produce a report that will find differences for you.




[Reader to Reader]

Avoid Referential Integrity Errors When Deleting Records from Databases

Deleting all the records in a database can be tricky when it includes tables with foreign keys. Here's a script you can use if you have ALTER TABLE permission and a stored procedure you can use if you don't.

CLR Stored Procedure Finds Broken Objects

Stored procedures, user-defined functions, views, and triggers can fail to execute when the objects they reference have been changed. Here's a tool you can use to detect broken objects before they cause problems.

Easily Import and Export SSIS Packages

Storing SQL Server Integration Services (SSIS) packages under a well-defined folder structure in msdb is advantageous, but getting them there can be a hassle. Here's a solution that does all the work for you.

Find Strings in Database Code, SQL Server Agent Jobs, and SSIS Packages

After discovering a useful T-SQL stored procedure, a reader and his coworkers adapt it so it can perform more types of searches and more refined searches when needed.

How to Determine the Average Number of Days Between Orders or Other Important Events

Using a looping algorithm to determine the average number of days between orders can be painfully slow code to write and run. A better approach is to use the ROW_NUMBER function.




[T-SQL Black Belt]

Set-Based vs. Cursor-Based Solutions for Running Aggregates

Although set-based solutions to running aggregations have many advantages over cursor-based solutions, cursor-based solutions can provide better performance in certain cases, such as when dealing with very large partitions.




[SELECT TOP(X)]

SQL Server Management Studio Keyboard Shortcuts

Put these SSMS keyboard shortcuts by your computer and quickly connect to, navigate through, and manage in SSMS.




[Buyer's Guide]

SQL Server Backup and Recovery Software

Tips from SQL Server backup and recovery experts can help you decide when to upgrade from SQL Server's native backup capability to a third-party solution, and what features to look for.



 

ADS BY GOOGLE