SQL Server General DBA

Creating Logins for Databases Restored to a Replacement SQL Server

In planning to migrate our production server from SQL Server 7.0 to SQL Server 2000, we decided to repartition the hard drives, reinstall Windows 2000 Advanced Server, and install SQL Server 2000. To handle the web traffic with minimal interruption, we planned to backup all ten production databases and restore them to a temporary replacement […]

Start Preparing Today for the SQL Server 2000 Enterprise Certification Exam

If you plan to take the upcoming “Installing, Configuring, and Administering Microsoft SQL Server 2000 Enterprise Edition” (Exam 70-228) exam, which is scheduled to be released in January 2001, you will want to start preparing now.I has fortunate enough to be invited to take the beta test for this exam last November, and while I […]

SQL Server 6.5 Useful Undocumented Stored Procedures

In this article, I want to tell you about some useful undocumented stored procedures shipped with SQL Server 6.5. sp_fixindex This stored procedure can be used to fix a corruption in a system table by recreating the indexes on the system table. This is an example: EXEC sp_fixindex pubs, sysindexes, 2 sp_lock2 As a SQL […]

Compare SQL Server Databases with sp_CompareDB

Editor’s Note: Not only has this author produced a very useful stored procedure to compare SQL Server database structure and data, his code provides valuable insights in to how to write advanced Transact-SQL code. This article include much of the thought process used when the author created the sp_CompareDB stored procedure. Even if you don’t […]

Useful Undocumented SQL Server Extended Stored Procedures

An extended stored procedure (xp) is a dynamic link library that runs directly in the address space of SQL Server and is programmed using the SQL Server Open Data Services API. You can run extended stored procedures from the Query Analyzer, for example, just as you would normal stored procedures. Extended stored procedures are used […]

Undocumented SQL Server 7.0 System Tables

In this article, I want to tell you about undocumented system tables shipped with SQL Server 7.0. These tables are used by some system stored procedures and stored in the master database (only the sysfiles1 system table is stored in each database). syscursorcolumnsContains the list of server cursor’s columns. This table is stored in the […]

Some Useful Undocumented SQL Server 6.5 DBCC Commands

In this article, I want to tell you about some useful undocumented DBCC commands, and how you can use these commands in SQL Server 6.5 for administering and monitoring.DBCC is an abbreviation for Database Console Command. DBCC commands are generally used to check the physical and logical consistency of a database, although they are also […]