SHARE
Facebook X Pinterest WhatsApp

SQL Server Registry Hacks Top 10

May 24, 1999

*WARNING* all these tips need edits to be made to the registry. DO NOT TRY THIS ON A LIVE SYSTEM!! ALSO these are 6.5 specific unless otherwise noted.

Unless you now exactly what you are doing these are for info purposes only!

  1. SA Password is stored in the registry. HKLM(or HKCU)SOFTWAREMICROSOFTMSSQLSERVERSQLEWREGISTERED SERVERS. Then View / Display Binary data.
    The password is offset 64 in the data, terminated by 0x00.
  2. Rebuilding the 6.5 registry settings can be done with this command:

    cd mssqldll
    ..binnsetup /t RegistryRebuild = On
  3. Performance Monitor counters not to be found? Check that Administrator has full control of HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSSQLServer.
  4. Alerts To stop frequent errors firing an alert add the number to HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSSQLServerSQLExecutiveNonAlertableErrors. By default 1204 and 4002 are already there.
  5. Version Using the HKEY_LOCAL_MACHINESoftwareMicrosoftMSSQLServerSetupProductSuite key you can determine the version of SQL Server you are running.

    SQL Server 6.x standard versions = No entry (There should be NO ProductSuite key)
    SQL 6.5 Enterprise Edition = Enterprise
    Small Business Server = SBS
  6. SQLTrace To allow non administrators to view and save filters grant read access to HKEY_LOCAL_MACHINESystemCurrentControlSetControlSecurePipeServersWinreg
  7. SQL Server Keys the keys SQL Server uses are as follows:
    Generic to all versions:
    • HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesMSSQLServer
    • HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSSQLServer

    Specific to 6.0

    • HKEY_LOCAL_MACHINESystemCurrentControlSetServicesMSDTC
    • HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSQLExecutive

    Specific to 7.0

    • HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSQLServerAgent
    • HKEY_LOCAL_MACHINESoftwareMicrosoftMicrosoft SQL Server 7
    • HKEY_LOCAL_MACHINESoftwareMicrosoftMSSQLServ65
  8. SQL Executive has a limit on the number of active SQL Server connections running at any one time. Adding MaxDBProcesses Value Name to:
    HKEY_LOCAL_MACHINE: SOFTWAREMicrosoftMSSQLServerSQLExecutive
    The value should be added as a Data Type of REG_DWORD. Possible values are from 10 to 255 (Decimal). The actual number of concurrent tasks allowed will be three less than the number you specify to allow for SQLExecutive overhead.

Copyright ) 1998-99 G.h.van den Berg. All rights reserved.
These pages may not be resold or redistributed without prior written permission from Guy van den Berg

Recommended for you...

Best Online Courses to Learn SQL
Ronnie Payne
Sep 23, 2022
Best Courses for Database Administrators
Ronnie Payne
Jul 22, 2022
Tip 74 – Changing Cost Threshold for Parallelism
Gregory Larsen
Feb 24, 2021
How Many Databases Can You Name?
Brad Jones
May 11, 2020
Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.