Microsoft SQL Server 2005 Express Edition for Dummies Robert Schneider download
Microsoft SQL Server 2005 Express Edition for Dummies Robert Schneider download
https://ebookgate.com/product/microsoft-sql-server-2005-express-
edition-for-dummies-robert-schneider/
https://ebookgate.com/product/microsoft-sql-server-2005-express-
edition-for-dummies-robert-d-schneider/
ebookgate.com
https://ebookgate.com/product/beginning-microsoft-sql-
server-2008-programming-robert-vieira/
ebookgate.com
https://ebookgate.com/product/microsoft-sql-server-2008-r2-unleashed-
rankins/
ebookgate.com
https://ebookgate.com/product/microsoft-sql-server-2008-bible-1st-ed-
edition-paul-nielsen/
ebookgate.com
Microsoft Visual C 2005 Express Edition Build a Program
Now Patrice Pelland
https://ebookgate.com/product/microsoft-visual-c-2005-express-edition-
build-a-program-now-patrice-pelland/
ebookgate.com
https://ebookgate.com/product/microsoft-visual-basic-2005-express-
edition-build-a-program-now-patrice-pelland/
ebookgate.com
https://ebookgate.com/product/professional-microsoft-sql-
server-2012-reporting-services-1-auflage-edition-bruckner/
ebookgate.com
https://ebookgate.com/product/professional-microsoft-sql-
server-2012-reporting-services-1st-edition-paul-turley/
ebookgate.com
https://ebookgate.com/product/accelerated-sql-server-2008-1st-edition-
robert-e-walters/
ebookgate.com
Microsoft ®
™
SQL Server 2005
Express Edition
FOR
DUMmIES
‰
by Robert Schneider
Microsoft ®
™
SQL Server 2005
Express Edition
FOR
DUMmIES
‰
by Robert Schneider
Microsoft® SQL Server™ 2005 Express Edition For Dummies®
Published by
Wiley Publishing, Inc.
111 River Street
Hoboken, NJ 07030-5774
www.wiley.com
Copyright © 2006 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permit-
ted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written
permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the
Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600.
Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing,
Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at
http://www.wiley.com/go/permissions.
Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the
Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade
dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United
States and other countries, and may not be used without written permission. Microsoft and SQL Server
are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other coun-
tries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc., is not asso-
ciated with any product or vendor mentioned in this book.
‘Microsoft’ is a registered trademark of Microsoft Corporation in the United States and/or other countries
and is used by Wiley Publishing, Inc. under license from owner. ‘Microsoft® SQL Server™ 2005 Express
Edition For Dummies®’ is an independent publication not affiliated with Microsoft Corporation.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: THE PUBLISHER AND THE AUTHOR MAKE NO REP-
RESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CON-
TENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT
LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE CRE-
ATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES CON-
TAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE
UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR
OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A
COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE
AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION
OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE OF FUR-
THER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES THE INFOR-
MATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT MAY MAKE.
FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK MAY HAVE
CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ.
For general information on our other products and services, please contact our Customer Care
Department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.
For technical support, please visit www.wiley.com/techsupport.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may
not be available in electronic books.
Library of Congress Control Number: 2005927727
ISBN-13: 978-0-7645-9927-9
ISBN-10: 0-7645-9927-5
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
1B/QW/QW/QW/IN
About the Author
Robert D. Schneider has more than 15 years of experience developing and
delivering sophisticated software solutions worldwide. He has provided data-
base optimization, distributed computing, and other technical expertise to a
wide variety of enterprises in the financial, technology, and government sec-
tors. Clients have included Chase Manhattan Bank, VISA, HP, SWIFT, and the
governments of the United States, Brazil, and Malaysia.
Author’s Acknowledgments
The author wants to acknowledge the following people for their invaluable
assistance in creating and publishing this work: Nicole Sholly, Tiffany
Franklin, Damir Bersinic, Rebecca Senninger, Terri Varveris, Nancy L.
Reinhardt, and the folks in Composition Services. And last but certainly not
least: Lynn Z. Schneider, Danielle Jolie Schneider, and Nicole Sierra Schneider
for their unswerving support and encouragement.
Publisher’s Acknowledgments
We’re proud of this book; please send us your comments through our online registration form
located at www.dummies.com/register/.
Some of the people who helped bring this book to market include the following:
Changing Data...............................................................................................150
Deleting Data.................................................................................................152
Removing all rows from a table ........................................................153
Removing some of the rows from a table........................................154
Chapter 17: Sorry, I’ll Try That Again: Adding Error Handling
to Your Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .251
Don’t Just Ignore It: Why You Should Care About Errors .......................251
How to Handle Errors ..................................................................................252
Information about errors...................................................................252
Built-in system functions...................................................................254
Handling errors in the database .......................................................254
Handling errors in the application ...................................................256
Error Examples .............................................................................................257
Syntax error.........................................................................................258
Database schema issue......................................................................258
Data conversion problems ................................................................259
Referential integrity violation ...........................................................259
Trigger interception ...........................................................................260
Defining Your Own Errors with RAISERROR .............................................260
Chapter 21: Using XML with SQL Server 2005 Express . . . . . . . . . . .317
What Is This Thing Called XML? ................................................................317
XML advantages .................................................................................318
XML structure .....................................................................................318
Other important XML concepts .......................................................321
When should you use XML?..............................................................322
Placing XML into Your SQL Server 2005 Express Database....................323
Operating on XML-based Information .......................................................326
Searching for XML data .....................................................................327
Modifying XML data ...........................................................................328
Formatting relational data as XML...................................................328
Magazines......................................................................................................335
User Groups ..................................................................................................335
Books .............................................................................................................335
Database Design Tools ................................................................................336
Administrative Tools ...................................................................................336
Data Generation Tools .................................................................................336
Blogs ..............................................................................................................336
Chapter 23: Ten SQL Server 2005 Express Troubleshooting Tips . . .337
Show Me How I Can Get the Product.........................................................337
I Can’t Install It!.............................................................................................338
I Can’t Connect to the Database! ................................................................338
Show Me How to Administer My Database...............................................339
I Can’t See My Data!......................................................................................339
My Data Is Messed Up!.................................................................................340
I Want to Automate Some Operations .......................................................340
I Want to Simplify My Data ..........................................................................341
I Want to Build Good Software....................................................................341
My Database Server Is Too Slow! ...............................................................342
Index........................................................................377
Introduction
A lthough once derided as a provider of relatively low-end relational data-
base products, Microsoft has turned its flagship SQL Server database
into a platform that can compete with any database servers on the market.
Ironically, the downside of all this power is that some now find SQL Server to
be too complex and feature-rich.
Here are some of the things you can do with this book:
Foolish Assumptions
You don’t need a PhD from MIT to derive value from this book. On the contrary:
Any exposure to the items on the following list goes a long way towards helping
2 Microsoft SQL Server 2005 Express Edition For Dummies
you make the most from the book. And if you don’t currently have any experi-
ence, you will soon:
However, if you’re an absolute newbie with SQL Server who is building a new
application, you’ll probably want to look at the early chapters on the prod-
uct’s architecture and infrastructure first before moving onto the develop-
ment section.
Also, if you’re not the type of person who pops the hood of your car to see
how the motor works, you’ll likely find yourself skipping the information
called out by the tech stuff icons. Just as your car still runs without you mem-
orizing the workings of its transmission, you can still derive a lot of value from
SQL Server 2005 Express even if you don’t know its internal architecture.
Introduction 3
How This Book Is Organized
Microsoft SQL Server 2005 Express Edition For Dummies is split into eight
parts. You don’t have to read it sequentially, and you don’t even have to read
all the sections in any particular chapter. You can use the Table of Contents
and the index to find the information you need and quickly get your answer.
In this section, I briefly describe what you find in each part.
This icon highlights the new features you find in this latest version of SQL
Server Express.
This icon marks a general interesting and useful fact — something that you
may want to remember for later use.
When you see this icon, you know that techie stuff is nearby. If you’re not
feeling very techie, you can skip this info.
The Tip icon points out helpful information that is likely to make your
job easier.
The Warning icon highlights lurking danger. With this icon, I’m telling you to
pay attention and proceed with caution.
6 Microsoft SQL Server 2005 Express Edition For Dummies
Task Look At
Installation requirements and guide Chapter 2
Upgrading to SQL Server 2005 Express Appendix B
Common problems Chapter 23
SQL Server 2005 Express functionality limitations Chapter 1
Converting to a more powerful SQL Server version Appendix A
Pairing the database with the right applications Chapter 1
Enabling the right network protocols Chapter 3
Creating databases and tables Chapter 8
Best practices for database design Chapter 9
Transact-SQL syntax Chapter 10
Using XML with SQL Server 2005 Express Chapter 21
Writing your own stored procedures Chapter 14
Using views Chapter 9
Configuring the SQL Server 2005 Express engine Chapter 5
Integrating transactions to your application Chapter 12
Taking advantage of replication Chapter 6
Using SQL Server Management Studio Express Chapter 4
Intercepting calls to your database Chapter 15
Protecting your information Chapter 11
Backing up your database Chapter 13
Using other languages to build stored procedures Chapter 16
Graceful error handling Chapter 17
Building applications with Express editions Chapters 19 and 20
Reporting services Chapter 18
Key terms and concepts Appendix C
Part I
Welcome to SQL
Server 2005 Express
In this part . . .
B efore you can start making the most of your SQL
Server 2005 Express database server, you need to do
a few simple — yet important — tasks. That’s what this
part is all about: Helping you figure out if SQL Server 2005
Express is right for you, and then getting going as quickly
as possible.
First, you find out all about SQL Server 2005 Express,
including its major features, as well as where it differs
from its bigger (and more expensive) siblings. With that
background out of the way, you’re ready to see how to get
your own, free copy of SQL Server 2005 Express. Next, I
tell you about some common situations in which you use
this product, as well as some scenarios where you should
choose another edition. Finally, the part closes out with
some basic steps that you can follow to get your database
up and running.
Chapter 1
To begin, I give you some context to understand how this capable, yet entry-
level product came about, along with how it fits in with the rest of the SQL
Server product family. Next, you see who the ideal user is for SQL Server 2005
Express, along with a list of some of the product’s most compelling features
(as well as what’s not present). Finally, I show you the kind of tools that you’ll
want to acquire so you can get started building applications and working
with your SQL Server 2005 Express data.
As more time passed, a new breed of database companies arose. With names
like Oracle, Informix, and Sybase, these vendors (and many others) developed
a particular kind of database, known as a relational database. Relational data-
bases are particularly well designed for storing information in tabular format,
which further helped software developers as they built a whole new class of
enterprise applications.
Microsoft also entered the relational database fray some years back with the
SQL Server database. Once thought of as a relatively lightweight database
vendor, Microsoft has continually refined SQL Server to the point where it
can compete for the largest and most complicated database-driven applica-
tions. Of course, all these capabilities and power have made the SQL Server
database platform somewhat intimidating and confusing for many developers
and users, especially those that are building and using simpler solutions.
To address this problem, beginning with the SQL Server 2005 product family,
Microsoft has created several different versions of SQL Server. Known as edi-
tions, each of these versions addresses a different class of database environ-
ment. Despite this segmentation, all editions are built on the same underlying
technology platform. The main difference among the editions is that the sim-
pler, less far-reaching versions don’t have all the features and storage capac-
ity that you find in their larger (and more complex) siblings. Here’s a list of all
the SQL Server 2005 editions:
To get the lowdown on the differences among each SQL Server 2005 edition,
go to
www.microsoft.com/sql/prodinfo/features/compare-
features.mspx
As you evaluate potential uses for SQL Server Express 2005, note that you can
use it for all sorts of applications, from traditional, desktop-based rich client
software as well as browser-based solutions that are available over the Internet.
SQL Server 2005 Express is just one component of a larger collection of entry-
level products aimed at helping developers and hobbyists use Microsoft’s tech-
nologies to deliver powerful and flexible computing solutions. These products,
all of which are part of Visual Studio 2005 Express include the following:
All these products work seamlessly with SQL Server 2005 Express. If you’re inter-
ested in taking advantage of these products, have a look at Chapters 19 and 20.
12 Part I: Welcome to SQL Server 2005 Express
Figure 1-1:
SQL Server
2005
Express
information
available
from inside
Visual
Studio.
14 Part I: Welcome to SQL Server 2005 Express
⻬ High availability features: The entire SQL Server 2005 product family
offers numerous technologies to help keep your database up and run-
ning at all times. However, Express doesn’t offer these capabilities, all of
which reduce down time or help improve performance:
• Online restore
• Database mirroring
• Partitioning
• Failover clustering
• Online indexing
If you’re building a mission critical application and continual uptime is
of vital importance to you, you may want to deploy your solution on one
of the other SQL Server 2005 editions.
⻬ Rich programming language choices: The entire SQL Server 2005 prod-
uct line supports the Microsoft Common Language Runtime (CLR). This
means that you can develop internal database logic such as stored pro-
cedures and triggers in any one of a number of popular programming
languages, rather than in SQL Server’s internal programming language:
Transact-SQL.
⻬ Analysis services: The more advanced editions of SQL Server 2005 fea-
ture business analytic logic that you can use to help make sense of your
information. This is especially true if your environment sports massive
volumes of data that need to be crunched to come up with recognizable
patterns. The bad news is that this is not present in SQL Server 2005
Express. However, the good news is that chances are that if these kinds
of data are found in your organization, you’ll have already purchased
one of the many third-party business intelligence products.
⻬ Report server: Users always want more information out of their data-
base. With SQL Server 2005’s reporting services, you can set up a wide
range of developer-driven and user-driven reports. You can then inte-
grate and deliver these communiqués through a series of different pre-
sentation technologies. Happily, you’ll find these capabilities present in
SQL Server 2005 Express with Advanced Services, which should help
please those finicky users. If you’re curious about how these features
work, take a look at Chapter 18 for the details.
⻬ Integration services: These features allow you to write powerful integra-
tion logic that can take information from a broad range of other data
storage locations and then store it inside SQL Server. The same holds
true for outbound data. Unfortunately, you won’t find these services pre-
sent in SQL Server 2005 Express. Luckily, this doesn’t mean that you
can’t integrate data among disparate systems; it just means that you
may have to do some more work to achieve the same results.
⻬ Notification services: This refers to the capability, found only in the
more feature-rich editions of SQL Server 2005, to build sophisticated
publish-and-subscribe applications. Once created, these applications
Chapter 1: SQL Server 2005 Express Overview 15
can properly react to a wide variety of events, notifying all interested
parties that an event has occurred. SQL Server 2005 Express does let
you take advantage of replication, but only as a subscriber.
⻬ Backup/recovery options: Because backup and recovery are a vital part
of any data integrity and reliability plan, SQL Server 2005 offers adminis-
trators a choice among several different recovery models, each of which
has its own strengths and weaknesses. However, your data-archiving
choices are somewhat more reduced for SQL Server 2005 Express. You
can still set up a very robust backup and recovery strategy; it’s just not
as full featured as in the more advanced editions of SQL Server. In partic-
ular, because the SQL Server Agent is not present, you won’t be able to
schedule jobs or configure alerts and operators.
SQL Server 2005 Express strikes a nice balance between simplicity and
power, while holding the cost as low as you can possibly get. Plus, because
many small businesses one day find themselves morphed (or acquired) into
larger enterprises, making this database server the cornerstone of your data
storage architecture means that you never outgrow your database: You can
easily upgrade to SQL Server 2005 Enterprise.
On top of that, the fact that SQL Server 2005 Express is a true relational data-
base management platform means that you can store and track just about
anything in your database. Some particularly good applications include
⻬ Inventory details
⻬ Sales statistics
⻬ Financial metrics
16 Part I: Welcome to SQL Server 2005 Express
When you have this information safely ensconced in your SQL Server 2005
Express database, you’re free to use all sorts of tools and technologies to
help make sense of your data. For example, you might store details about all
the individual transactions that your organization performs, and then use
business intelligence or other data analysis tools to help identify trends from
your sales results.
While you’re free to store anything you like in your SQL Server 2005 Express
database, be aware that any individual database has a maximum storage limit
of 4GB for your information. If you find yourself approaching that ceiling, you
need to archive some of your older data to make room for newer knowledge.
Distributed enterprise
With the rise of low cost, high-speed Internet connections, many more organi-
zations are realizing benefits from distributed computing. For the distributed
enterprise of any size, SQL Server 2005 Express offers a good balance
between the low maintenance requirements of an entry-level database like
Microsoft Access, and the capabilities of a robust, server-based database.
In addition to these features, you can administer multiple remote SQL Server
2005 Express sites from one location via the SQL Server Management Studio
Express.
Another useful capability of SQL Server 2005 Express is its ability to partici-
pate as a client in a replication architecture. This means that you could have
a single, high-end edition of SQL Server distributing its data among numerous
SQL Server 2005 Express clients. These clients could, in turn, support read-
only applications like reporting or business intelligence. This type of archi-
tecture spreads the processing load across multiple machines, and helps
eliminate bottlenecks.
If you base your applications and solutions around SQL Server 2005 Express,
you’re not locked in: If your customers need extra horsepower and capabili-
ties, they can quickly and painlessly upgrade to a more powerful edition of
SQL Server.
As an added benefit to OEMs and ISVs, SQL Server 2005 Express lets you
store your data in a single, easily transferred file. Known as an .mdf file, this
structure combines the simplicity of a low-end flat file with the power of a
true relational database management system. You should note, however, that
you have to deploy the SQL Server Express 2005 server, even if you only
intend to deploy .mdf files with your solution.
Before you get heavily into using this edition, you should make sure that
none of these limitations are showstoppers for you. Remember that the
majority of these constraints shouldn’t impact you during development;
they’re only an issue at runtime.
Even though this edition has feature restrictions, SQL Server 2005 Express
works with all the same types of information as its more fully featured sib-
lings, and you can easily migrate to a more powerful edition. It also supports
all the same application programming interfaces (APIs), as well as the same
stored procedure and trigger capabilities.
This means that as a designer, you can build your SQL Server 2005 Express
database with confidence, knowing that you aren’t painted into a corner by
missing capabilities, nor the solution you design is forever consigned to this
entry-level database. This works the other way as well: You can design your
solution on a more powerful edition of SQL Server 2005, and then deploy it
onto SQL Server 2005 Express, as long as it doesn’t require any of the fea-
tures that are only found in the more expensive editions of the product.
This tight integration can go a long way toward boosting your productivity. In
effect, with these products, Microsoft has broken down the traditional barrier
between application and database tools.
Figure 1-2:
Visual
Basic 2005
Express
and SQL
Server 2005
Express.
20 Part I: Welcome to SQL Server 2005 Express
Of course, Microsoft isn’t the only game in town when it comes to application
development technologies. You can use several third-party tools (including
open source and shareware) to construct a SQL Server-based solution.
To begin, SQL Server 2005 Express snaps into the standard Microsoft
Computer Management console. This lets you configure and run your data-
base services, which you can see in Figure 1-3.
Figure 1-3:
Configuring
SQL Server
2005
Express
services.
Chapter 1: SQL Server 2005 Express Overview 21
For further configuring and managing your SQL Server 2005 Express server,
you can choose between graphical and character-based tools. As you might
expect, graphical tools provide more intuitive, easy-to-understand informa-
tion about your server.
When it comes to graphical tools, it’s hard to beat Microsoft’s free, excellent
graphical management environment known as SQL Server Management
Studio Express. Figure 1-4 shows a sample of what this product looks like.
SQL Server Management Studio Express can do much more than simply show
you tables and run queries. One handy tool is the activity monitor, which
opens a window onto all database-related activity for your server. Figure 1-5
shows a sample session; you can monitor a tremendous amount of informa-
tion using this tool.
Figure 1-4:
Viewing a
table in SQL
Server
Manage-
ment Studio
Express.
22 Part I: Welcome to SQL Server 2005 Express
Figure 1-5:
The SQL
Server
Manage-
ment Studio
Express
Activity
Monitor.
Chapter 2
In this chapter, you find out what you need to do to get ready for SQL Server
2005 Express, along with how to download, install, and run some basic tests to
make sure everything went smoothly. After a successful installation, you still
have a few things to do before you can use the product to its fullest potential;
I show you those things in Chapter 3. If you have information stored in other
locations that you want to entrust to this database, take a look at Appendix B,
which describes how to import data into SQL Server 2005 Express.
⻬ Via the Internet: If you have a fast Internet connection, you can quickly
and easily download SQL Server 2005 Express. Here’s all you need to do:
1. Point your browser to http://www.microsoft.com/sql.
2. Click the Downloads link.
You should now see a link for SQL Server 2005 Express.
3. Review the System Requirements and Instructions before down-
loading your product.
I describe some of these system requirements in the next section.
You’ll be presented with a potentially bewildering array of SQL Server
2005 Express downloads on Microsoft’s Web site. Here’s a brief overview
of each of the available products:
• Baseline SQL Server 2005 Express: This is the standalone, entry-
level SQL Server database found in SQLEXPR.EXE.
• SQL Server 2005 Express with Advanced Services: This is the
next level up in database power and capability, yet it’s still free! If
you’re interested in enhanced reporting services and full-text
searching, this might be the edition for you (see Chapter 18). It’s in
a file entitled SQLEXPR_ADV.EXE.
• SQL Server Management Studio Express: This is an excellent,
powerful, yet easy-to-use database administration and interaction
tool. I strongly recommend getting a copy; you won’t regret it.
• SQL Express toolkit: If you’re interested in developing reports with
SQL Server 2005 Express with Advanced Services, the Business
Intelligence Development Studio contained in this toolkit is a
must-have.
If you can’t get to SQL Server 2005 Express via the preceding instruc-
tions, just use the Search feature on the Microsoft Web site to find it
quickly.
⻬ Via Visual Studio 2005: SQL Server 2005 Express is part of a larger
group of low-priced Microsoft offerings, known as the Express editions.
These products are aimed at a wide audience of developers that might
not have used these types of solutions before, and include
• Visual Basic 2005 Express Edition (which is conveniently on this
book’s CD)
• Visual Web Developer 2005 Express Edition
• Visual C# 2005 Express Edition
• Visual C++ 2005 Express Edition
• Visual J# 2005 Express Edition
Microsoft also bundles SQL Server 2005 Express with Visual Studio 2005,
which is available for purchase either stand-alone or via the Microsoft
Developer Network (MSDN).
Chapter 2: Downloading and Installing SQL Server 2005 Express 25
⻬ Via the CD that ships with this book: To make things even easier for
you, a fully functional copy of SQL Server 2005 Express with Advanced
Services is on the CD that comes with this book. You can read more
about it in Appendix D.
Take the time to go through each of these major system readiness categories,
making sure that you meet or exceed each of these prerequisites. Also, if
you’re installing SQL Server 2005 Express on multiple machines, remember
that the machine that acts as a central server generally requires faster and
better hardware than one that primarily acts as a client. Finally, you need to
have administrative privileges on the computer where you’re installing SQL
Server 2005 Express.
⻬ CPU: For optimal performance, you want at least a 600 MHZ CPU,
although things might be kind of sluggish at that speed. Using a 1GHZ
CPU definitely makes things peppier and is recommended.
⻬ Memory: Because sufficient memory serves as the foundation of any
well-performing relational database, make sure that you provide 512MB
or more, as recommended by Microsoft. You could probably get away
with 192MB (minimum), but you’re pushing things at that level. In gen-
eral, just as you can’t be too rich or too thin, you can’t provide a rela-
tional database with too much CPU or memory, although SQL Server
2005 Express will not use more than 1GB of RAM.
⻬ Disk: Given that relational databases use disk drives as their primary
storage mechanism, recommending a hard-and-fast value for the right
amount of available disk capacity is difficult: Every installation is differ-
ent. Just the product and its related files take up more than 500MB of
disk space; you’ll likely want to add one or two gigabytes on top of that
for your data.
⻬ Operating system: Microsoft gives you a fairly wide choice of operating
systems that can run SQL Server 2005 Express. They include
• Windows Server 2003
• Windows Small Business Server 2003
• Windows XP Home Edition
• Windows XP Media Center Edition
26 Part I: Welcome to SQL Server 2005 Express
Figure 2-1:
A disk that
needs to be
defrag-
mented.
Figure 2-2:
The initial
SQL Server
2005
Express
installation
prerequisite
screen.
SQL Server 2005 Express runs some very sophisticated checks against
your system to make sure that the upcoming installation goes smoothly.
Each configuration check is flagged as Success, Error, or Warning.
You must correct errors; you can get away with ignoring warnings, but
things may not run very smoothly if you do so.
Figure 2-3:
The SQL
Server 2005
Express
Installation
Wizard.
Another Random Scribd Document
with Unrelated Content
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
Welcome to Our Bookstore - The Ultimate Destination for Book Lovers
Are you passionate about books and eager to explore new worlds of
knowledge? At our website, we offer a vast collection of books that
cater to every interest and age group. From classic literature to
specialized publications, self-help books, and children’s stories, we
have it all! Each book is a gateway to new adventures, helping you
expand your knowledge and nourish your soul
Experience Convenient and Enjoyable Book Shopping Our website is more
than just an online bookstore—it’s a bridge connecting readers to the
timeless values of culture and wisdom. With a sleek and user-friendly
interface and a smart search system, you can find your favorite books
quickly and easily. Enjoy special promotions, fast home delivery, and
a seamless shopping experience that saves you time and enhances your
love for reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
ebookgate.com