Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 529 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
529
Dung lượng
6,2 MB
Nội dung
[...]... Installation 467 Appendix C: Answers to Exercises 473 Index xviii 483 44063flast.qxd:WroxBeg 9/12/06 3:45 PM Page xix Introduction Welcome to Beginning C# 2005 Databases! In this book you learn everything you need to know about developing C# applications that access databases If you are wondering why this is such an important topic, just consider how many applications use the functionality At first glance,... NET development with C# and who want to learn about databases and database access The C# code used in the examples in this book is described in detail only in cases where it is quite advanced, or where it’s an area you might not have looked at before However, no experience with databases is assumed, so the database code you write (using ADO.NET) is explained from first principles Databases themselves... are introduced to the language used to manipulate databases, Structured Query Language (SQL) Along the way you learn the terminology used by databases, see how databases may be represented graphically, and get your first look at the database management system used in this book — SQL Server 2005 Express Edition If you’ve had any previous experience with databases, you may find that you are already familiar... definition of a database is, the types of database that are available, and the features that databases provide Finally, you see how to access databases using the SQL language, and take a look at how XML fits into the picture In Chapter 2 you move on to learn about ADO.NET, and how it can used to access databases from C# applications You’ll also see the Express tools that you’ll be using in this book, and... need the following products to use this book: ❑ Microsoft NET Framework 2.0 ❑ Microsoft Visual C# 2005 Express Edition ❑ Microsoft SQL Server 2005 Express Edition xxi 44063flast.qxd:WroxBeg 9/12/06 3:45 PM Page xxii Introduction ❑ Microsoft SQL Server Management Studio Express ❑ Microsoft Visual Web Developer 2005 Express Edition You can find instructions for downloading and installing these products... Available? MySQL and PostgreSQL DB2, Oracle, and SQL Server SQL Server 2005 Express Edition How Do You Use a Database? A SQL Primer XML Summary Exercises xi xix 1 2 3 8 8 9 9 9 10 10 10 11 11 12 13 13 14 14 14 15 15 16 16 17 18 30 33 34 44063ftoc.qxd:WroxBeg 9/12/06 3:17 PM Page xiv Contents Chapter 2: Databases and C# Database Access in C# ADO.NET Data Binding Visual Tools Express Products SQL Server Management... Database Fundamentals Before you start to look at accessing databases from C# code, there are a few basics that you need to know It is necessary to have a formal definition of what is meant by the term database, and that’s the first thing you examine in this chapter Once you have this definition, you look in more depth at the features that databases (and, more specifically, database management systems)... robust applications from a database This book is the perfect starting point to learn about databases, and particularly about using Microsoft SQL Server from NET 2.0 applications written in C# Over the course of the book, you learn the fundamentals of database technology, how the NET Framework can be used to access databases, and how to get the most out of your code Along the way you are presented with... database data can be cached to avoid having too much traffic between Web servers and database servers Finally, in Chapter 11 you’ll look at a topic that’s new to NET 2.0 and SQL Server 2005: writing managed code in C# that you can load into and execute inside SQL Server This enables you to create functions, stored procedures, and more without resorting to SQL code You’ll learn how this can give you... 44063flast.qxd:WroxBeg 9/12/06 3:45 PM Page xxi Introduction In Chapter 7 you explore views and stored procedures in databases and see how you can use them to simplify the code you need to write in client applications By performing some of your data manipulation in SQL Server, you won’t have to do it in C# code However, there are additional things to consider when you’re working with views and stored procedures, . y0 w0 h0" alt="" Beginning C# 2005 Databases Karli Watson 44063ffirs.qxd:WroxBeg 9/12/06 3:17 PM Page iii 44063ffirs.qxd:WroxBeg 9/12/06 3:17 PM Page ii Beginning C# 2005 Databases 44063ffirs.qxd:WroxBeg. i 44063ffirs.qxd:WroxBeg 9/12/06 3:17 PM Page ii Beginning C# 2005 Databases Karli Watson 44063ffirs.qxd:WroxBeg 9/12/06 3:17 PM Page iii Beginning C# 2005 Databases Published by Wiley Publishing, Inc. 10475. Server 2005 Express Edition 16 How Do You Use a Database? 17 A SQL Primer 18 XML 30 Summary 33 Exercises 34 44063ftoc.qxd:WroxBeg 9/12/06 3:17 PM Page xiii xiv Contents Chapter 2: Databases and C#