Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

cdn.s3techtraining.com
from cdn.s3techtraining.com More from this publisher
17.06.2013 Views

Chapter 2: Tools of the Trade 28 The Aliases list is a listing of all the servers on which you have defined a specific NetLib to be used when contacting that particular server. This means that you can contact one server using IP and another using Named Pipes — whatever you need to get to that particular server. Figure 2-5 shows a client configured to use the Named Pipes NetLib for requests from the server named HOBBES and to use whatever is set up as the default for contact with any other SQL Server. Figure 2-5 Again, remember that the Client Network Configuration setting on the network machine must have a default protocol that matches one supported by the server, or it must have an entry in the Aliases list to specifically choose a NetLib supported by that server. If you are connecting to your SQL Server over the Internet (which is a very bad idea from a security standpoint, but people do it), you’ll probably want to use the server’s actual IP address, rather than the name of the server. This gets around some name resolution issues that may occur when dealing with SQL Server and the Internet. Keep in mind, however, that you’ll need to change the IP address manually if the server gets a new IP; you won’t be able to count on DNS to take care of it for you. SQL Ser ver Management Studio The SQL Server Management Studio is pretty much home base when administering a SQL Server. It provides a variety of functionality for managing your server using a relatively easy-to-use graphical user interface. Branched off of the Visual Studio IDE environment’s code base, it combines a myriad of functionality that used to be in separate tools. For the purposes of this book, we’re not going to cover everything that the Management Studio has to offer, but let’s make a quick run down of the things you can do: ❑ Create, edit, and delete databases and database objects ❑ Manage scheduled tasks, such as backups and the execution of SSIS package runs

❑ Display current activity, such as who is logged on, what objects are locked, and from which client they are running ❑ Manage security, including such items as roles, logins, and remote and linked servers ❑ Initiate and manage the Database Mail Service ❑ Create and manage full-text search catalogs ❑ Manage configuration settings for the server ❑ Initiate an instance of the new PowerShell console ❑ Create and manage publishing and subscribing databases for replication We will be seeing a great deal of the Management Studio throughout this book, so let’s take a closer look at some of the key functions Management Studio serves. Getting Started with the Management Studio When you first start the Management Studio, you are presented with a Connection dialog box similar to the one in Figure 2-6. Figure 2-6 Your login screen may look a little bit different from this, depending on whether you’ve logged in before, what machine you logged into, and what login name you used. Most of the options on the login screen are pretty self-explanatory, but let’s look at a couple in more depth. Server Type This relates to which of the various subsystems of SQL Server you are logging in to (the normal database server, Analysis Services, Report Server, or Integration Services). Since these different types of servers can share the same name, pay attention to this to make sure you’re logging in to what you think you’re logging in to. Server Name Chapter 2: Tools of the Trade As you might guess, this is the SQL Server in to which you’re asking to be logged. In Figure 2-6, we have chosen “.”. This doesn’t mean that there is a server named period, but rather that we want to 29

Chapter 2: Tools of the Trade<br />

28<br />

The Aliases list is a listing of all the servers on which you have defined a specific NetLib to be used when<br />

contacting that particular server. This means that you can contact one server using IP and another using<br />

Named Pipes — whatever you need to get to that particular server. Figure 2-5 shows a client configured<br />

to use the Named Pipes NetLib for requests from the server named HOBBES and to use whatever is set<br />

up as the default for contact with any other <strong>SQL</strong> <strong>Server</strong>.<br />

Figure 2-5<br />

Again, remember that the Client Network Configuration setting on the network machine must have a<br />

default protocol that matches one supported by the server, or it must have an entry in the Aliases list to<br />

specifically choose a NetLib supported by that server.<br />

If you are connecting to your <strong>SQL</strong> <strong>Server</strong> over the Internet (which is a very bad idea from a security<br />

standpoint, but people do it), you’ll probably want to use the server’s actual IP address, rather than the<br />

name of the server. This gets around some name resolution issues that may occur when dealing with<br />

<strong>SQL</strong> <strong>Server</strong> and the Internet. Keep in mind, however, that you’ll need to change the IP address manually<br />

if the server gets a new IP; you won’t be able to count on DNS to take care of it for you.<br />

<strong>SQL</strong> Ser ver Management Studio<br />

The <strong>SQL</strong> <strong>Server</strong> Management Studio is pretty much home base when administering a <strong>SQL</strong> <strong>Server</strong>. It provides<br />

a variety of functionality for managing your server using a relatively easy-to-use graphical user<br />

interface. Branched off of the Visual Studio IDE environment’s code base, it combines a myriad of functionality<br />

that used to be in separate tools.<br />

For the purposes of this book, we’re not going to cover everything that the Management Studio has to<br />

offer, but let’s make a quick run down of the things you can do:<br />

❑ Create, edit, and delete databases and database objects<br />

❑ Manage scheduled tasks, such as backups and the execution of SSIS package runs

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!