Past SQL Server 10-Minute Solutions
Regulatory mandates like Sarbanes-Oxley and HIPAA dictate changes to your data elements. Leverage SQL Server's extended properties to maintain the synchronization between your documentation, database objects, and code base when such changes arise.
|
Without the use of SQL Server's debugger or Raiserror during development, you're on your own for error handling. Learn two solutions for testing your stored procedure code under these tough conditions.
|
Part II of this DTS task series illustrates how the author used multi-step DTS packages to build a solution that consolidates an indeterminate amount of Excel data in one SQL Server table. The solution repeats this process so it catches updated data, and it executes once for each Excel file.
|
SQL Server 2000's DTS offers a copiouseven bewilderingbundle of pre-packaged tasks. This 10-Minute Solution, the first of a two-part series exploring DTS tasks, illustrates how to chain different types of tasks together to collect the information you'll need to process data contained in a file location table. This technique is particularly useful in environments that require "after the fact" data updates.
|
You need certain data values to complete a database-programming job, but you don't know where they're located. What can you do? Follow this 10-Minute Solution to navigate through an unfamiliar database, and locate and extract the table and column names that house your values.
|
The sheer number of objects in a database makes keeping track of them difficult. As your system grows in complexity, identifying the objects' dependencies and their purposes can quickly become confusing. Adopt a naming convention that limits the ambiguity and uncertainty surrounding an object and its purpose.
|
Learn how to determine the state of your indexes and understand whether that state should be changed. See how evaluating the construction and location of your system's indexes and deciding whether to adjust their fill factors and padding can improve the system's performance.
|
SQL Profiler is a great SQL Server tool that can help you reach your database optimization goals. This 10-Minute Solution presents a few preparatory steps to start using Profiler for monitoring performance problems. It discusses some techniques, tools, and commands that reveal information about server behavior.
|
This article describes how to apply locking, coding, and transaction management in a way that strikes the correct balance between concurrency and integrity while avoiding deadlocks.
|
The article describes how to avoid out-of-space errors with the appropriate setup, sizing, and maintenance to keep logs from growing out of control. You'll also learn how to set up monitoring facilities that will catch unexpected errors for you.
|
The article describes how to create and utilize user-defined functions in SQL Server 2000.
|
The article describes how to preserve the metadata and data content of test and production databases in a development environment without the database size requirements inherent in those environments.
|
SQL Server has added powerful capabilities to the recovery process, such as creating a standby database. Unless you know how to use the RESTORE command properly, however, you risk losing data.
|
The article describes four different methods of backin up a SQL Server database; when to use them and why.
|
This 10-Minute Solution describes two ways of giving end users direct access to query a database using views.
|
The article explains how to automatically calculate when the next (or next N) business days are from a given date by calculating and storing this type of information in SQL Server. You will learn more about how SQL Server handles dates and about its functions.
|
This 10-Minute Solution describes many of the extra details that will help you create a better data recovery plan.
|
SQL Server 2000 provides a new feature called 'recovery models.' The article describes how to make the best use of this feature to simplify your backup strategy.
|
Describes the steps you should follow to set up a comprehensive backup plan.
|
The article describes a simple process for assessing and mitigating risk from data loss.
|
In this 10-Minute Solution, Joe Lax demonstrates how to use Dynamic SQL to process those changes and apply them to the second database.
|
How best to capture changes that have occurred in a database using triggers.
|
Property functions are new to SQL Server 7.0 and are used to query various details or properties about the objects in your database. This 10-Minute Solution explains the COLUMNPROPERTY and DATABASEPROPERTY functions.
|
There are three property functions for querying the attributes of database objects: OBJECTPROPERTY, COLUMNPROPERTY, and DATABASEPROPERTY. This solution looks at the OBJECTPROPERTY function and describes the kind of data you can retrieve with it.
|
To specify the number of records that are returned by a query, you can use either SET ROWCOUNT or the TOP keyword.
|
The sp_OAMethod stored procedure is used to call an object method. The article explains some of the problems you could encounter and how to work around them.
|
The article describes the SQL Server OLE automation stored procedures and how you can use them to access an object's properties.
|
SQL Server 7 provides another method for obtaining metadata: the INFORMATION_SCHEMA views. The article introduces these views and shows how they can provide critical information about your database.
|
The article describes a basic understanding of the metadata in a database. Though theoretical in nature, it can be used to solve complex problems.
|
There is a way to reduce the complexity of a system by reducing the number of tables. This reduction is accomplished by consolidating tables based on their domains.
|
How to trap, analyze, and graph performance data.
|
A theoretical discussion of the meaning of data normalization and related concepts.
|
Explains a technique to eliminate the need to write your own cursors to accomplish common database administration tasks, such as running the DBCC (database consistency checker) routines to update index statistics or to run a backup of a database.
|
This article warns of the dangers of using identities and triggers together.
|
In version 7 of SQL Server, each database contains a table called sysfiles that stores a row for each file used by the database. The article describes how to obtain a list of all files associated with SQL Server?
|
Part 3 of a three-part article on triggers in SQL Server. It provides an approach to coding and debugging triggers and discusses the features that added in SQL Server version 7 regarding triggers.
|
The changes that Microsoft has made to SQL Server version 7 are great enough that how you will function as a database administrator could change significantly. Here are some areas that DBAs might want to investigate.
|
Part 2 of a three-part article on triggers in SQL Server. The article discusses when and why we use triggers and the technical details of how to write a trigger.
|
Part 1 of a three-part article on triggers in SQL Server. An overview of triggers in SQL Server: When to use them, how to debug them, and more.
|
Microsoft SQL Server is a great database for Web sites, especially Web sites deployed on NT and using Microsoft's IIS server. It's easy to install, relatively cheap, and interacts well with IIS. Here's a checklist to ensure your deployment runs smoothly.
|