Go To Homepage



Book Details
Beginning C# 2008 Databases: From Novice to Professional book cover
  • By Vidya Vrat Agarwal James Huddleston Ranga Raghuram Syed Fahad Gilani Jacob Hammer Pedersen Jon Reid
  • ISBN13: 978-1-59059-900-6
  • ISBN10: 1-59059-900-4
  • 482 pp.
  • Published Jan 2008
  • Print Book Price: $39.99
  • eBook Price: $27.99



Errata Submission

If you think that you've found an error in Beginning C# 2008 Databases: From Novice to Professional, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

Submit Errata
Beginning C# 2008 Databases: From Novice to Professional (978-1-59059-900-6)

Errata

Issue Author's Response
Chapter 8, Page 153

Open connection and begin transaction are in the TRY statement, should be placed outside of TRY. Code in book is wrong, but source code is correct.
Open connection and begin transaction statements should be placed outside of TRY statement.
Chapter 8, P153, code reads:
try
{
// open connection
conn.Open();

// begin transaction
SqlTransaction sqltrans = conn.BeginTransaction();

Should read:
// open connection
conn.Open();

// begin transaction
SqlTransaction sqltrans = conn.BeginTransaction();

try
{
This must be resolved as Should read, as mentioned in the errata above
page 9: The link to AdventureWorks Creation script don't exist. http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx?ReleaseId=4004

This is the URL to be used.
chapter 8
page 153

the statement:
SqlTransaction sqltrans = conn.BeginTransaction();

is created in the try block and is not in scope in the catch block. It can not be used to rollback a transaction. It needs to go before the try block.
SqlTransaction sqltrans = conn.BeginTransaction();

This statement must be used outside of the Try statement