SQL Server  «Prev  Next»

Lesson 3 SQL Client/Server Architecture
Objective Explain SQL Server Architecture

Explain SQL Server Architecture

Microsoft SQL Server exists for the sole purpose of performing the following tasks:
  1. Accepting information requests from the calling application.
  2. Processing the information.
  3. Returning information to the calling application.
Whereas this course is primarily concerned with how SQL Server processes information, this lesson will talk about how SQL Server accepts and returns information.
  • The Calling Application
    The application that makes and receives requests for information is called the client application, or simply, the client. The client makes requests to SQL Server, which is known simply as the server. This type of architecture is known as client/server. Usually, the client and the server are located on different computers.

Connecting the Server

For the client and server to be able to communicate with each other, a common communication method, called a protocol, or a net-library, must be in place. Otherwise, information cannot be exchanged over a connection. This would be similar to a telephone conversation in which neither of the parties spoke the same language.
  • Role of the net-library:
    The net-library resides on both the client and server sides, in order to translate information on both ends. The net-library is specified at the network level, and can be any standard network
    The Net-Library is a component of SQL Server's architecture that handles network communication protocols, translating and managing the exchange of data between the client application and the SQL Server instance. On the client side, the Net-Library translates the client application's requests (e.g., SQL queries) into a format that can be sent over the network using a specific protocol, such as TCP/IP, Named Pipes, or Shared Memory. It also interprets the responses received from the server and passes them back to the client application. On the server side, the Net-Library listens for incoming client requests, interprets them, and forwards them to the SQL Server engine for processing. After the server processes the request, the Net-Library formats the response and sends it back to the client over the network. In summary, the Net-Library acts as an intermediary on both ends, ensuring that communication between the client and server is properly translated and handled, regardless of the underlying network protocol used.
  • Net-library Network Protocols
    Net-library supports all of the standard protocols:
    1. Named Pipes,
    2. Multi-Protocol,
    3. TCP/IP,
    4. IPX/SPX,
    5. AppleTalk
    6. Banyan VINES, and even
    7. shared memory.

    However, not all protocols are available on all platforms. The following table illustrates which libraries are available on which platforms:
    LibraryWindows (Client Library)Windows (Server Library)Windows XP (Client Library)Windows XP (Server Library)
    Named PipesYesYesYesNo
    Multi-ProtocolYesYesYesYes
    TCP/IPYesYesYesYes
    IPX/SPXYesYesYesYes
    AppleTalkYesYesNoNo
    Banyan VINESYesYesYesNo
    Shared memoryNoNoYesYes

Changing protocols

  • Changing protocols on Client Side:
    If you wish to install or use a different protocol on the client side, you must use the Client Network Utility by choosing
                 
    Start-->Programs-->Microsoft SQL Server 2012-->Client Network Utility. 
    

    The following illustration shows what the Client Network Utility looks like:
    Client Network Utility
    Client Network Utility
  • Changing protocols on the Server Side:
    If you with to install or use a different protocol on the server side, you must use the Server Network Utility by choosing
    Start-->Programs-->Microsoft SQL Server 2012-->Server Network Utility. 
    

    The following illustration shows what the Client Network Utility looks like:

    Server Network Utility
    Server Network Utility

Putting it all together


So, how does it all fit together? Well, your application makes a call through an Application Programming Interface, or API, to a provider (if your application is OLE DB ), a driver (if your application is ODBC), or a DB-library (if your application is DB-library). This call is then passed through the network using the Client-side Net-library, across your LAN or WAN, to the server-side Net-library, and finally on to SQL Server. The request is processed and returned in the reverse order.

SEMrush Software 3 SEMrush Banner 3