170 likes | 275 Views
Chapter Overview. Reviewing the Results of Installation Starting, Stopping, Pausing, and Modifying Microsoft SQL Server 2000 Services Working with Osql, SQL Query Analyzer, and SQL Server Enterprise Manager. New Folders Added. NTFS File Permissions. Shared Registry Keys.
E N D
Chapter Overview • Reviewing the Results of Installation • Starting, Stopping, Pausing, and Modifying Microsoft SQL Server 2000 Services • Working with Osql, SQL Query Analyzer, and SQL Server Enterprise Manager
Shared Registry Keys • HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\80 • HKLM\SOFTWARE\Microsoft\MSDTC • HKLM\SYSTEM\CurrentControlSet\Services\MSSQLServerADHelper • HKLM\SOFTWARE\Microsoft\MSSQLServer\Client
Registry Keys Unique for Each Instance • Default instance • HKLM\SOFTWARE\Microsoft\MSSQLServer • HKLM\SYSTEM\CurrentControlSet\Services\MSSQLServer • Each named instance • HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\InstanceName • HKLM\SYSTEM\CurrentControlSet\Services\MSSQL$InstanceName
Default Instance Registry Key Access Restrictions • HKLM\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer • HKLM\SOFTWARE\Microsoft\MSSQLServer\Providers • HKLM\SOFTWARE\Microsoft\MSSQLServer\Setup • HKLM\SOFTWARE\Microsoft\MSSQLServer\Replication • HKLM\SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent • HKLM\SOFTWARE\Microsoft\MSSQLServer\Tracking • HKLM\SYSTEM\CurrentControlSet\Services\MSSQLServer
Named Instance Registry Key Access Restrictions • HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\InstanceName • HKLM\SYSTEM\CurrentControlSet\Services\MSSQL$InstanceName
Access Permissions on Existing Registry Keys • HKLM\SOFTWARE\Clients\Mail • HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib
Default Configuration for Each SQL Server Service • SQL Server service: auto start using a domain user account • SQL Server Agent service: manual start using the same domain user account • Microsoft Distributed Transaction Coordinator (MS DTC) service: auto start using the local system account • Microsoft Search service: auto start using the local system account
Stopping, Starting, and Pausing SQL Server Services • SQL Server Service Manager • SQL Query Analyzer and SQL Profiler • SQL Server Enterprise Manager • Microsoft Windows 2000 Services Microsoft Management Console (MMC) or Windows NT Services program • NET command
SQL Server and SQL Server Agent Account Services • When you want to change the service account of these services, you must use SQL Server Enterprise Manager. • SQL Server Enterprise Manager sets the appropriate user privileges and NTFS and Windows registry permissions for the new account. • SQL Server Enterprise Manager registers the services accounts with the Microsoft Search service. • If the SQL Server service is using a non-administrator account, you must specify an administrator account.
Working with Osql • Command-prompt utility for querying SQL Server. • Can be used interactively or to submit batches and jobs. • Uses the Open Database Connectivity (ODBC) API. • Arguments are case-sensitive.
Working with SQL Query Analyzer Figure 3.4
Working with SQL Server Enterprise Manager Figure 3.5
Chapter Summary • The SQL Server Setup program installs SQL files, adds registry keys, and sets permissions. • The SQL Server Service Manager controls SQL Server services. • Osql and SQL Query Analyzer are used for querying SQL Server. • SQL Server Enterprise Manager is used for administering SQL Server.