Ado .Net Programming

by ;
Edition: CD
Format: Paperback
Pub. Date: 2002-08-01
Publisher(s): Wordware
List Price: $49.95

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Aimed at database programmers with a working knowledge of the .NET Framework, this book dissects the ADO.NET coomponent model and provides real-world examples demonstrating how ADO.NET can be used to manipulate data from different sources.

Author Biography

Terrence J. Joubert is a software engineer for VCS. He specializes in Microsoft development tools Ryan N. Payet is the software team leader and system administrator for VCS. He has extensive experience with Microsoft SQL database technologies, .NET languages (VB .NET, C#, and C++), and various Microsoft Server technologies

Table of Contents

Aims and Objectivesp. xiii
Introduction to ADO .NETp. 1
Growing up from ADOp. 3
In This Chapterp. 3
Architectural Differencesp. 3
The ADO Architecturep. 4
Why Not Use ADO in .NET?p. 5
The ADO .NET Architecturep. 7
.NET Data Providersp. 9
In-Memory Data Representationp. 10
ADO: The Recordset Objectp. 10
ADO .NET: The DataSet and DataTable Objectsp. 10
Relationship Managementp. 12
ADO: Using JOIN in SQLp. 12
ADO .NET: The DataRelation Objectp. 13
Where is the Recordset?p. 15
Summaryp. 16
ADO .NET Revealedp. 17
Interacting with Databasesp. 19
In This Chapterp. 19
The Connection Objectp. 20
Connection Object Propertiesp. 21
ConnectionStringp. 21
Connection Timeoutp. 22
Databasep. 22
DataSourcep. 23
Providerp. 23
ServerVersionp. 23
Statep. 24
Connection Object Methodsp. 24
BeginTransaction()p. 24
ChangeDatabase()p. 25
Close()p. 25
CreateCommand()p. 26
Dispose()p. 26
Equals()p. 27
GetType()p. 27
Open()p. 28
ToString()p. 28
Connecting Through SQL Server .NET Data Providerp. 29
The Command Objectp. 30
Command Object Propertiesp. 30
CommandTextp. 30
CommandTimeoutp. 30
CommandTypep. 31
Connectionp. 31
Containerp. 32
Parametersp. 32
Transactionp. 32
Command Object Methodsp. 33
Cancel()p. 33
CreateParameter()p. 33
Dispose()p. 34
ExecuteNonQuery()p. 34
ExecuteReader()p. 35
ExecuteScalar()p. 35
ExecuteXmlReader()p. 36
GetType()p. 36
ToString()p. 37
The DataReader Objectp. 37
DataReader Propertiesp. 37
Depthp. 37
FieldCountp. 38
IsClosedp. 38
Item([left angle bracket]colum_name as string[right angle bracket] or [left angle bracket]column_ordinal as integer[right angle bracket])p. 38
RecordsAffectedp. 39
DataReader Methodsp. 39
Close()p. 39
CreateObjRef()p. 39
Equals()p. 40
GetBoolean()p. 40
GetByte()p. 41
GetBytes()p. 41
GetChar()p. 42
GetChars()p. 43
GetDataTypeName()p. 43
GetDateTime()p. 44
GetDecimal()p. 44
GetDouble()p. 45
GetFieldType()p. 45
GetFloat()p. 46
GetGuid()p. 46
GetHashCode()p. 47
GetInt16()p. 47
GetInt32()p. 48
GetInt64()p. 49
GetName()p. 49
GetOrdinal()p. 50
GetSchemaTable()p. 50
GetString()p. 50
GetTimeSpan()p. 51
GetValue()p. 51
GetValues()p. 52
IsDBNull()p. 52
NextResult()p. 53
Read()p. 53
The DataAdapter Objectp. 54
SqlDataAdapter Constructorp. 54
New()p. 55
New(System.Data.SqlClient.SqlCommand)p. 55
New(command as String, connection as String)p. 56
New(command as String, connection as SqlClient.SqlConnection)p. 56
SqlDataAdapter Propertiesp. 57
AcceptChangesDuringFillp. 57
ContinueUpdateOnErrorp. 58
DeleteCommandp. 58
InsertCommandp. 59
MissingMappingActionp. 59
MissingSchemaActionp. 60
SelectCommandp. 60
TableMappingsp. 61
UpdateCommandp. 61
SqlDataAdapter Methodsp. 62
CreateObjRef()p. 62
Dispose()p. 62
Fill()p. 63
FillSchema()p. 64
Update()p. 65
Summaryp. 66
Data Manipulationp. 67
In This Chapterp. 67
The DataSet Componentp. 68
What is the DataSet?p. 68
When Do You Need the DataSet?p. 69
How is the DataSet Organized?p. 70
Core DataSet Propertiesp. 71
CaseSensitivep. 71
Containerp. 71
DataSetNamep. 72
DefaultViewManagerp. 72
DesignModep. 72
EnforceConstraintsp. 73
ExtendedPropertiesp. 73
HasErrorsp. 73
Localep. 74
Namespacep. 74
Prefixp. 74
Relationsp. 75
Sitep. 75
Tablesp. 75
Core DataSet Methodsp. 76
AcceptChanges()p. 76
BeginInit()p. 76
Clear()p. 77
Clone()p. 78
Copy()p. 78
Dispose()p. 79
EndInit()p. 79
GetChanges()p. 80
GetService()p. 80
GetType()p. 81
GetXML()p. 82
GetXmlSchema()p. 82
HasChanges()p. 83
InferXmlSchema()p. 84
Merge()p. 86
ReadXml()p. 88
ReadXmlSchema()p. 89
RejectChanges()p. 89
Reset()p. 90
ToString()p. 90
WriteXml()p. 91
WriteXmlSchema()p. 91
DataSet.ExtendedPropertiesp. 92
Adding an Extended Propertyp. 92
Reading and Writing Valuesp. 93
DataTableCollectionp. 93
DataRelationCollectionp. 94
The Big Picturep. 95
Summaryp. 98
Designing ADO .NET Applicationsp. 99
.NET Application Modelsp. 99
Windows Forms Applicationsp. 99
Form Data Bindingp. 100
Common Scenarios for Data Bindingp. 102
Data Access Strategy for Windows Forms Applicationsp. 103
Console Applicationsp. 104
Data Access Strategy for Console Applicationsp. 104
Windows Services Applicationsp. 105
Data Access Strategy for Windows Servicesp. 105
ASP .NET Web Applicationsp. 106
Web Formsp. 107
Data Access in Web Formsp. 107
Data to XML Web Servicesp. 109
Data Access Strategy for ASP .NET Applicationsp. 115
Data, Data Everywherep. 120
Spec My Componentsp. 120
What is a Component in .NET?p. 121
When to Build Data Componentsp. 121
Component Design Guidelinesp. 122
Component Implementationp. 123
Learning to Runp. 125
Connection Poolingp. 125
Stored Procedure or SQL Statement?p. 127
Which Data Type?p. 127
Data Warehousingp. 128
Tuning and Monitoringp. 128
Protecting the Applicationp. 129
Passwords, Users, and Access Rightsp. 129
Application Informationp. 130
Summaryp. 130
XML Integration with ADO .NETp. 131
XML in .NET Frameworksp. 131
Architectural Overview and Design Goalsp. 131
Standards Compliancep. 132
Extensibilityp. 132
Pluggable Architecturep. 132
Performancep. 133
Tight Integration with ADO .NETp. 133
DOM: The XML Document Object Modelp. 134
Nodes in .NETp. 137
Loading XML Documents in the DOMp. 138
Validating XML Documentsp. 139
XML Integration with Relational Datap. 143
XML with MS SQL Server 2000p. 143
DataSet and XMLp. 144
DiffGramsp. 145
Working with ReadXmlp. 149
Writing XML from DataSetp. 152
XML Schemas from DataSetp. 154
Typed DataSets from XSD Schemap. 155
DataSet and XmlDataDocumentp. 156
Synchronizing DataSet with XmlDataDocumentp. 157
Nested DataRelationsp. 159
Creating DataSet Relational Schema from XML Schemap. 164
Creating from XML Schema (XSD)p. 164
Inferring from XMLp. 170
Summaryp. 172
Practical ADO .NET Programming (Part One)p. 173
In This Chapterp. 173
The Case Studyp. 174
The Web Servicep. 175
Designing the Web Servicep. 175
OrderProcessingWSp. 176
Data Retrieval Methodsp. 176
Implementing OrderProcessingWSp. 177
Setting Up IISp. 178
Creating OrderProcessingWS Projectp. 179
Web Service Namespacep. 180
Initialization Codep. 181
GetOrders Methodsp. 184
GetOrderDetails Methodsp. 193
GetFullOrders Methodsp. 195
GetFullOrders Codep. 201
GetFullOrders_By_Customer Codep. 205
Summaryp. 207
Practical ADO .NET Programming (Part Two)p. 209
In This Chapterp. 209
Data Update Methodsp. 209
The Update Functionsp. 210
The Protected Order Details Update Methodsp. 211
The DeleteOrderDetails Methodp. 211
The InsertOrderDetails Methodp. 214
The UpdateOrderDetails Methodp. 216
Concurrency Issuesp. 219
The Protected Orders Update Methodsp. 220
The sp_UpdateOrders Stored Procedurep. 220
The sp_InsertOrders Stored Procedurep. 223
The sp_DeleteOrders Stored Procedurep. 227
The UpdateOrders Methodp. 228
The DeleteOrders Methodp. 232
The InsertOrders Methodp. 234
The FullUpdateOrder Methodp. 237
Testing the Update Methodsp. 241
Summaryp. 241
Special Topicsp. 243
Migrating ADO Applicationsp. 245
In This Chapterp. 245
Legacy of Timep. 245
Language Changesp. 246
What about COM?p. 249
.NET Framework Bidirectional Migration Supportp. 250
ASP and ASP .NETp. 250
What about ADO?p. 250
To Migrate or Not to Migrate?p. 257
Migration Stepsp. 258
Migrate the Clientsp. 258
Create .NET Wrappers to COM Componentsp. 258
Migrate the Business Objectsp. 259
Summaryp. 259
Manipulating Multidimensional Datap. 261
In This Chapterp. 261
A Quick Primer on Analysis Servicesp. 262
Analysis Services Installationp. 262
System Requirementsp. 262
Installation Componentsp. 264
Setupp. 266
Starting Upp. 266
Running Setupp. 266
Understanding the Data Sourcep. 270
The Relational Databasep. 271
The OLAP Databasep. 272
Populating the OLAP Databasep. 272
How is the Data Stored?p. 273
PivotTable Servicep. 273
OLEDB Provider for OLAPp. 273
Multidimensional Expressions (MDX)p. 274
ActiveX Data Object Multidimensional (ADO MD)p. 274
ADO MD Examplep. 284
Using the CubeBrowser ActiveX Controlp. 285
Summaryp. 297
The Object-Oriented Features of VB .NETp. 299
Database Normalizationp. 325
Views, Stored Procedures, and Triggersp. 335
Advanced SQL Query Techniquesp. 375
Indexp. 417
Table of Contents provided by Syndetics. All Rights Reserved.

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.