Errata

Programming Microsoft® ADO.NET 2.0 Core Reference

Errata for Programming Microsoft® ADO.NET 2.0 Core Reference

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 1
205

da.SelectCommand.parameters.Append("@CustomerID" , SqlDbType.NVarChar , 10)

there is no Append method in the parameters collection

Anonymous  Feb 05, 2011 
Printed Page 244
Visual C# Code

if (row == null)
//cutomer not found !
else
.....


should be

if (row == null)
; //customer not found ! (there should be a semi colon)
else
............

Anonymous  Feb 09, 2011 
Printed Page 289
Visual C# Code

//Load the data
ds.Load(rdr);


it should be
tbl.Load(rdr);

Anonymous  Feb 09, 2011 
Printed Page 303
Visual C# code

//The 'Original' value for the column is "Initial CompanyName."
row["CompanyName"]= New ComapnyName";

the double quote is missing
it should be

// The .....
row["CompanyName"] = "New CompanyName";

Anonymous  Feb 09, 2011 
Printed Page 382
Visual C# code

strSQL = "SELECT CustomerID , City , Country FROM Customers";

there should be CompanyName in the select field

strSQL = "SELECT CustomerID , City , Country , CompanyName FROM Customers";

because the last line of the code is

Console.WriteLine(row["CompanyName"]);

Anonymous  Feb 10, 2011