Errata

ADO.NET 3.5 Cookbook

Errata for ADO.NET 3.5 Cookbook

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page P2.3
"P2.3. What You Need to Use This Book"

The following excerpt from this book's preface:

"This book presents code together with output so that you can use book without loading the
actual code. Code generated automatically by Visual Studio is not shown. You don't need to
retype the code in this book since it is available in both C# and Visual Basic on the
O'Reilly website (http://www.oreilly.com/catalog/9780596101404). T-SQL and PL/SQL code is
also available for download."

I have downloaded both of the zip files from the site (see above ). I cannot find any of
the Visual Basic code samples in extracted files from either of the two zip archives.
Where can I find them?

Anonymous   
Other Digital Version 1

The source code VB zip file is corrupted and will only unzip the first charter. Can you fix this. I've down loaded it twice on 2 different pc's and the results are the same.

Thanks
John

Anonymous  Nov 05, 2008 
10
Step 1

application should be named "StoreConnectionStringConfig" not "StoredConnectionStringConfig".

Jim Puls  Apr 08, 2009 
Printed Page 86
Last line

If you want the constraint name to be printed in the output, you have to change the last line of code to Console.WriteLine("\tName = {0} ", dt.Constraints[0].ConstraintName);

Anonymous  Aug 06, 2008 
Printed Page 105
// Set Primary key

According to AdventureWorks the primary key for this table is SalesOrderID and
SalesOrderDetailID, so that bit of code should read:

// Set the primary key
dtDetail.PrimaryKey =
new DataColumn[] { cols["SalesOrderID"],
cols["SalesorderDetailID"] };

Anonymous   
Printed Page 140
First paragraph - Output fields from DataReader row ....

dr["ContactID"], dr["LastName"], dr["FirstName"]);

should read

dr["ContactID"], dr["FirstName"], dr["LastName"]);

Anonymous  May 19, 2008 
Printed Page 611
Bottom of page reference to XmlValidatingReader class

This appears to be a serious technical error. The XmlValidatingReader class is referenced here and throughout Chapter 9 yet it was obsolete with the .NET Framework 2.0 release. Microsoft recommends using the XmlReader class to validate XML.

Thanks.

Anonymous  Mar 12, 2010