Introducing SQL Server Express

Similar documents
GETTING STARTED WITH SQL SERVER

Migrating MSDE to Microsoft SQL 2008 R2 Express

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

IIS, FTP Server and Windows

Team Foundation Server 2013 Installation Guide

QUANTIFY INSTALLATION GUIDE

Cloud Services ADM. Agent Deployment Guide

Introduction and Overview

Installation Guide for Microsoft SQL Server 2008 R2 Express. October 2011 (GUIDE 1)

Automating Administration with SQL Agent

SQL EXPRESS INSTALLATION...

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

4cast Client Specification and Installation

OneStop Reporting 3.7 Installation Guide. Updated:

Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Video Administration Backup and Restore Procedures

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Print Audit 6 - SQL Server 2005 Express Edition

Team Foundation Server 2012 Installation Guide

LifeSize Control Installation Guide

How To Use Gfi Mailarchiver On A Pc Or Macbook With Gfi From A Windows 7.5 (Windows 7) On A Microsoft Mail Server On A Gfi Server On An Ipod Or Gfi.Org (

Installing and Configuring Remote Desktop Connection Client for Mac

Active Directory Management. Agent Deployment Guide

Working with SQL Server Agent Jobs

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

Sophos Anti-Virus for NetApp Storage Systems startup guide

Preparing to Install SQL Server 2005

Setting up an MS SQL Server for IGSS

Active Directory Change Notifier Quick Start Guide

Exercise Safe Commands and Audit Trail

PC-Duo Web Console Installation Guide

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Virtual Office Remote Installation Guide

Installation Guide. . All right reserved. For more information about Specops Inventory and other Specops products, visit

NTL Studio SQL Database Installation & Configuration

Specops Command. Installation Guide

Installing GFI MailArchiver

Server Installation: ServerTools

Project management integrated into Outlook

Password Reset Server Installation Guide Windows 8 / 8.1 Windows Server 2012 / R2

NovaBACKUP xsp Version 15.0 Upgrade Guide

TestElite - Troubleshooting

Use of Commercial Backup Software with Juris (Juris 2.x w/msde)

Nexio Connectus with Nexio G-Scribe

Installing GFI MailArchiver

IMPORTANT: The person who installs and sets up the PCS Axis database on the central database server

Spotlight on Active Directory Quick Start Guide

Aventail Connect Client with Smart Tunneling

enicq 5 System Administrator s Guide

Immotec Systems, Inc. SQL Server 2005 Installation Document

Creating and Managing Shared Folders

Installing GFI MailArchiver

Spector 360 Deployment Guide. Version 7

SQL Server 2008 R2 Express Edition Installation Guide

Issue Tracking Anywhere Installation Guide

Quick Start Guide for Parallels Virtuozzo

MIGRATING TO AVALANCHE 5.0 WITH MS SQL SERVER

Sophos Anti-Virus for NetApp Storage Systems user guide. Product version: 3.0

NetSupport DNA Configuration of Microsoft SQL Server Express

Larger, active workgroups (or workgroups with large databases) must use one of the full editions of SQL Server.

DropSend Getting Started Guide

Active Directory Management. Agent Deployment Guide

Installation Manual Version 8.5 (w/sql Server 2005)

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

How To Set Up Dataprotect

aims sql server installation guide

WINDOWS 7 & HOMEGROUP

Installation Guide v3.0

Moving the TRITON Reporting Databases

Implementing Microsoft SQL Server 2008 Exercise Guide. Database by Design

Metalogix SharePoint Backup. Advanced Installation Guide. Publication Date: August 24, 2015

Mobility Services Platform Software Installation Guide

DataCove. Installation Instructions for Search Plug-in for Microsoft Outlook 2007 & 2010 (All Users)

Reporting works by connecting reporting tools directly to the database and retrieving stored information from the database.

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

Migrating TimeForce To A New Server

Arkay Remote Data Backup Client Quick Start Guide

Step-by-Step Guide to Setup Instant Messaging (IM) Workspace Datasheet

NetSupport DNA Configuration of Microsoft SQL Server Express

Visual Studio.NET Database Projects

Enterprise Manager. Version 6.2. Installation Guide

How to install and use the File Sharing Outlook Plugin

MicrosoftDynam ics GP TenantServices Installation and Adm inistration Guide

HOUR 3. Installing Windows Server 2003

PLEASE NOTE: The client data used in these manuals is purely fictional.

TROUBLESHOOTING INFORMATION

Installation Guide. . All right reserved. For more information about Specops Deploy and other Specops products, visit

User Guide Microsoft Exchange Remote Test Instructions

Quick Start Guide for VMware and Windows 7

Brazosport College VPN Connection Installation and Setup Instructions. Draft 2 March 24, 2005

LAB: Enterprise Single Sign-On Services. Last Saved: 7/17/ :48:00 PM

4cast Server Specification and Installation

smarshencrypt User s Guide

EntroWatch - Software Installation Troubleshooting Guide

How to Connect to Remote Desktop & How to Use Cisco AnyConnect Secure Mobility Client Secure VPN Connection

Install SQL Server 2014 Express Edition

LepideAuditor Suite for File Server. Installation and Configuration Guide

NetWrix SQL Server Change Reporter

Test Note Phone Manager Deployment Windows Group Policy Sever 2003 and XP SPII Clients

Transcription:

4402book.fm Page 1 Monday, May 8, 2006 10:52 AM Part 1 Introducing SQL Server Express Chapter 1: Introduction to SQL Server Express Chapter 2: Overview of Database Concepts Chapter 3: Overview of SQL Server Chapter 4: Database Design and Normalization COPYRIGHTED MATERIAL

4402book.fm Page 2 Monday, May 8, 2006 10:52 AM

4402book.fm Page 3 Monday, May 8, 2006 10:52 AM Chapter 1 Introduction to SQL Server Express Welcome to Mastering Microsoft SQL Server 2005 Express Edition. In this book, we ll help you learn the basics of SQL Server Express and advance to more complex skills. You won t learn everything about Microsoft s lightweight version of SQL Server 2005. However, we will show you how to get up and running quickly, and how to handle typical everyday tasks of keeping your data safe, secure, and available to your users. SQL Server Express isn t an upgrade of SQL Server. It s supposed to be a new version of Microsoft Database Engine (MSDE), but it s really much more. It s an easy-to-use version of the full-blown SQL Server 2005 Microsoft s flagship database. Thanks to SQL Server Express, a powerful and flexible database is available to all of us, not just the computer geeks and gurus. Before we dig deep into the details of SQL Server Express, we want to introduce you to the product. You may be a budding database administrator (DBA), anxious to manage a database for others to use; you may be a developer, ready to write code that will extract information from a server that someone else is maintaining; or you may be a regular user who just needs to see some data and doesn t have time to wait for the IT department to build an application. Whoever you are, Mastering Microsoft SQL Server 2005 Express Edition has something for you. In this chapter, we ll talk briefly about the ways you ll likely work with SQL Server Express, whether you re a DBA, a developer, or a user. Users in particular should review these pages even if you don t expect to ever write a line of code or manage a database. By knowing what you could do with SQL Server Express, you ll be in a much better position to discuss with your IT people the sort of solutions and assistance you need. We can t highlight all the features in SQL Server Express in this short chapter, but we can show you enough to get you excited and ready to dig in. Why SQL Server Express? Unlike the full-blown version of SQL Server, which has five different editions, there s only one version of SQL Server Express. It s for anybody who needs to bring order to their data, from the small business owner to individuals just trying to get their work done. SQL Server Express is a free, easy-to-use, simple-to-manage database without many of the features of the full-blown SQL Server such as Notification Services, Analysis Services, Integrations Services, and Reporting Services, to name only a few. SQL Server Express can function as the client database as well as a basic server database. SQL Server Express is a good option when all that s needed is a stripped-down version of SQL Server, typically among low-end server users such as small businesses, non-professional developers building web applications, and hobbyists building client applications.

4402book.fm Page 4 Monday, May 8, 2006 10:52 AM 4 CHAPTER 1 INTRODUCTION TO SQL SERVER EXPRESS MSDE first appeared with Office 2000. An updated version, known commonly as SQL Server Desktop Engine, came with Office XP. The latter was more popular than the original version, which went largely unnoticed. Both early versions were limited (Microsoft likes to call it optimized) to five concurrent processes. That really means you couldn t use MSDE or Desktop with more than a few users. SQL Server Express fills a specific niche in the database world: This scaled-down version of SQL Server is perfect for the small business with limited funds and personnel. Small businesses with few users will find SQL Server Express a more powerful alternative than the average desktop database. SQL Server Express is a great training tool for the full-blown version. Trainers and students don t need access to the real thing to learn the basics. This version is ideal for building web applications. Combined with Visual Web Developer Express and Visual Basic Express, it forms a complete web application solution for individuals and small enterprises. SQL Server Express uses the same database engine as SQL Server 2005. However, it s limited to one CPU, 1 GB RAM, and 4 GB in data files (that limit doesn t include log files). Unlike its predecessors, MSDE and Desktop, the engine isn t optimized (throttled); nor does it limit the number of active users. SQL Server Express comes with simple and robust graphical user interface tools: Microsoft SQL Server Management Studio Express (Management Studio), SQL Server Configuration Manager, and SQL Server Surface Area Configuration. All three help to simplify basic database tasks and administration. Management Studio is free and available in a separate download. One of its most important goals is to be accessible and easy to use. Administering SQL Server Express If you had experience with MSDE or SQL Server Desktop, you re in for a big change. SQL Server Express no longer uses an Access project file (adp) graphic interface. Now you ll use Management Studio, which is similar to the new management tool in SQL Server 2005. We ll take a few moments to look at how you use this interface to administer data and services as well as to keep track of what s happening on your server. This will be a short visit though. All of Chapter 9 is devoted to this important tool. Opening Management Studio To launch SQL Server Express, choose (All) Programs Microsoft SQL Server 2005 SQL Server Express Management Studio Express from the Windows Start menu. (Management Studio is available via a separate download.) After you launch Management Studio, it will ask you to connect to a SQL Server Express instance. Inside Management Studio, you can expand a treeview to drill down from servers to databases to objects and inspect individual objects in a list view. Figure 1.1 shows how Management Studio might look after you drill down a few levels.

4402book.fm Page 5 Monday, May 8, 2006 10:52 AM ADMINISTERING SQL SERVER EXPRESS 5 Figure 1.1 Microsoft SQL Server Management Studio Express NOTE The AdventureWorks database is a sample database that you can download. In many cases throughout the book, we ll use AdventureWorks as a generic example of a database. We ll also use the AdventureWorks sample database or create examples that you can emulate for your own database needs. Even if you don t know anything about Management Studio, you ll appreciate the wide list of objects that can be manipulated using this interface: Databases Database diagrams Tables Views Stored procedures Users Roles Defaults User-defined datatypes Linked servers Remote servers Backups Database maintenance plans SQL Server Express logs Replication Logins Server roles Performance Analyzer User-defined functions And that s just a sample! You ll learn about most of these objects in coming chapters.

4402book.fm Page 6 Monday, May 8, 2006 10:52 AM 6 CHAPTER 1 INTRODUCTION TO SQL SERVER EXPRESS Creating a Login If you re a DBA, one of your main tasks is to manage security in SQL Server Express. We ll discuss security in much more detail in Chapter 17, but for now, let s look at one part of the picture: creating a login. A SQL Server Express login is a necessary part of making your SQL Server Express data available to a Windows user on your network. There are several ways to create a new login. The easiest way is to use the Logins folder under the Security folder in Management Studio. Open Object Explorer, expand the server instance, and then expand the Security Folder. Right-click the Login folder and select New Login. The New Login property window opens (see Figure 1.2). In the top part of the pane, you select the authentication mode. SQL Server Express can use two methods to verify that a user is who they claim to be: Windows Authentication compares the user with their credentials in the Windows 2000/2003 user database. SQL Server Authentication prompts the user for a password that s evaluated by SQL Server Express. In most cases, you should choose Windows Authentication your users won t have to supply a separate password for SQL Server Express, and you won t have two sets of passwords to audit and coordinate. You may want SQL Server Express accounts, though, for operations such as accessing a database over the Internet. Also, be aware that Windows Authentication is available only if SQL Server Express is running on Windows 2000 or Windows 2003. Figure 1.2 The New Login window s General page

4402book.fm Page 7 Monday, May 8, 2006 10:52 AM ADMINISTERING SQL SERVER EXPRESS 7 In the Login Name text box, you specify the Windows user for whom you want to create a login (assuming that you chose Windows Authentication mode). You can type in the domain and username manually or search for the user by clicking the Search button. In the server access section, you can either grant a user access to your server or deny a user all access to your server. As a general rule, you should deny access to everyone who doesn t explicitly need to get to the data on your server. There s no point in having idle hands riffling through your database. Now, click Server Roles in the left pane to open the Server Roles page shown in Figure 1.3. Here you can select which server-wide security privileges this user should have. Figure 1.3 The New Login window s Server Roles page Using the Configuration Manager You may also be called on to change the way a SQL Server Express instance starts or to make an adjustment to the SQL Server Express configuration. To do these sorts of tasks, you use a different server tool: the SQL Server Configuration Manager. To launch the Configuration Manager, click Windows Start (All) Programs Microsoft SQL Server 2005 Configuration Tools SQL Server Configuration Manager. The Configuration Manager opens as a Microsoft Management Console snap-in, as shown in Figure 1.4. Let s use Configuration Manager to set SQL Server Express to start automatically: 1. Select SQL Server 2005 Services. 2. In the details pane, right-click the name of the SQL Server Express instance you want to start automatically SQL Server (SQLEXPRESS) and then click Properties.

4402book.fm Page 8 Monday, May 8, 2006 10:52 AM 8 CHAPTER 1 INTRODUCTION TO SQL SERVER EXPRESS Figure 1.4 SQL Server Configuration Manager 3. In the SQL Server (SQLEXPRESS) Properties dialog box, click the Service tab. Set Start Mode to Automatic, as shown in Figure 1.5 (because this is the default value, the value should already be Automatic). 4. Click OK, and then close SQL Server Configuration Manager. Figure 1.5 Setting Start Mode to Automatic

4402book.fm Page 9 Monday, May 8, 2006 10:52 AM NEW AND IMPROVED 9 Viewing Current Activity At times, you may want to know what s going on in your database. You can get a quick overview through Management Studio by selecting the Activity Monitor. Right-click and select View Processes to open the Activity Monitor Process Info page. Figure 1.6 shows typical activity on a lightly loaded server. You may find a process running here that you don t recognize. If so, double-clicking the process lets you see the last set of T-SQL commands submitted by that process. Figure 1.6 Viewing current activity in the Activity Monitor New and Improved The depth and flexibility of SQL Server Express should convince you that learning SQL Server Express will take some time. The good news is, it s easy and quick to implement you don t need to know everything. The following features and enhancements are those you re likely to see most in the components you ll probably use often: Data access: SQL Server Express supports the same native and managed providers as SQL Server 2005. That means your SQL Server Express applications will work with other editions of SQL Server. Security: Networking protocols and SQL Brower are turned off by default. You ll use the SQL Server Configuration Manager to manipulate both.

4402book.fm Page 10 Monday, May 8, 2006 10:52 AM 10 CHAPTER 1 INTRODUCTION TO SQL SERVER EXPRESS Replication: Replication allows your users to maintain copies of a database at multiple sites. SQL Server Express supports replication subscriptions. You can use Replication Management Objects (RMO) or Windows Sync Manager to schedule subscriptions. SQL Server Broker (SSB): SQL Server Express introduces a completely new technology called Service Broker. The role of Service Broker is to aid in the building of database-intensive distributed applications that are secure, reliable, and scalable. This feature works only in combination with other SQL Server 2005 editions. User instances: User Instances let you treat databases like files. For example, you can move, copy, or e-mail a local database. Summary SQL Server Express isn t everything to everybody, but in the current release, it has something for almost every computer user. In the rest of this book, you ll learn about various aspects of SQL Server Express: Part 1 will teach you basic SQL Server Express and database concepts. Part 2 will teach you Transact-SQL. Part 3 examines the basic SQL Server Express objects and Management Studio. Part 4 covers administrative tasks. Part 5 reviews the developer tools you ll use with SQL Server Express. Part 6 introduces some advanced topics and new technologies. We hope that what you ve read in this chapter has whetted your appetite for more! The next chapter will introduce basic database concepts.