Introduction to SQL Server

This section is intended for the experienced Microsoft Access user who has never explored the features of Microsoft SQL Server. If you are familiar with SQL Server and SQL Enterprise Manager, skip this section. For more information about any of the features discussed here, see SQL Server version 6.5 Books Online.

SQL Server Setup

The SQL Server Setup program performs the following actions for you:

Windows NT Services

SQL Server creates and uses two Windows NT Services. To see these, use the Services application in Windows NT Control Panel. The MSSQLServer Service is the basic server. The SQLExecutive Service is the scheduling manager for SQL Server. Each of these services can be started with the local System Account or with a Windows NT domain account. The System Account is usually sufficient unless your network has several servers that need to talk to one another. Replication from one computer to another computer requires using a domain account that is recognized by both servers.

Security

If you are installing SQL Server for the first time, select mixed security to give you the maximum connection options.

Network Protocols

The Setup program selects Named Pipes by default. If you are new to SQL Server, start with at least Named Pipes and perhaps TCP\IP. The server can easily listen on several protocols and the resource cost of doing so is minimal. When you understand the network issues, you can run Setup again and remove the unneeded protocols. If you plan to use Windows NT integrated security, you must select either Named Pipes or Multi-Protocol.

SQL Enterprise Manager

SQL Enterprise Manager is the workhorse of SQL Server. You use it to manipulate devices, databases, tables, and indexes. SQL Server does not have a user interface. SQL Enterprise Manager is a client, as is Microsoft Access. True, it is constructed to give you tools specifically for dealing with SQL Server, but it connects as a client and has no special status. SQL Enterprise Manager can connect to several SQL Servers at the same time. The first time you start SQL Enterprise Manager you are asked to register a server. Provide the Windows NT computer name in the server box, click Use Standard Security, and provide "sa" as the Login ID with no password.

Exploring Server Manager

Once the server is registered, you can start exploring the Server Manager. Click the plus signs (+) to expand lists of objects, drilling down to greater detail. A normal installation creates five databases:

SQL Query Tool

This tool enables you to send SQL statements to the server. Select a server or database in the Server Manager window. On the Tools menu, click SQL Query Tool. (SQL Enterprise Manager does not have a tool like the Microsoft Access query by example grid.) In the Query dialog box, click the DB list to expand it and select the pubs database. Enter a query:

SELECT * FROM titles

To run the query, click the green arrow at the upper right of the dialog box. You can execute the query by typing ctrl+e or by selecting Execute from the Query menu of SQL Enterprise Manager.

ISQL/w

This program is similar to the SQL Query Tool in SQL Enterprise Manager. You can more directly control the login for troubleshooting connection problems. It also excels at passing error messages to the users. This makes troubleshooting easy to perform with the simple ISQL\w client program.

Client Configuration Utility

When you install SQL Server, you select one or several network protocols. Before you connect from SQL Enterprise Manager or ISQL/w program, you can change the protocol you use with the Client Configuration Utility. To do so, on the Start menu, select Programs, click Microsoft SQL Server 6.5, then click SQL Client Configuration Utility. Next, click the Net Library tab. Select the desired protocol from the Default Network box and click Done.