Wrox Programmer Forums
|
BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8
This is the forum to discuss the Wrox book Wrox's Visual Basic 2005 Express Edition Starter Kit by Andrew Parsons; ISBN: 9780764595738
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's Visual Basic 2005 Express Edition Starter Kit ISBN: 978-0-7645-9573-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2006, 07:59 AM
Registered User
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 8 SQL Runtime Error

I am unable to run the Personal Organizer Login excercise with the Try It Out beginning on page 166. I get the same error using the Chapter 8 Personal Organizer Start project and adding the code required myself as I do by running the code provided in the Chapter 8 Personal Organizer completed project. The specific runtime error is 'SQLException was Unhandled' with detail "An attempt to attach an auto-named database for file H:\Wiley-2\Wrox Visual Basic Express 2005 Starter Kit\Code\Chapter 8\Personal Organizer Database File\PO-Data.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share." The program stops in the _PO_DataDataSet.Designer.vb code section highlighting the statement "Dim returnValue As Integer = Me.Adapter.Fill(dataTable)"

If anyone can assist with this problem it would be greatly appreciated. I have been unsuccessful with Chapter 7 and Chapter 8 and database connections in general!

--------------

The help section asks to...

Verify that you are connecting with valid credentials.
Make sure that the credentials you are supplying are valid. For more information, see How to: Access SQL Server Using Predetermined Credentials.

Verify that the server name is correct and that the server is running.

Make sure that you are using the correct server name, and that the server can be reached. For more information, see How to: Create Connections to SQL Server Databases.
Remarks

This exception is thrown whenever the .NET Framework Data Provider for SQL Server encounters an error generated by the server.
Messages with a severity level of 10 or less are informational and indicate problems caused by mistakes in information that a user has entered. Severity levels from 11 through 16 are generated by the user and can be corrected by the user. Severity levels from 17 through 25 indicate software or hardware errors. When a level 17, 18, or 19 error occurs, you can continue working, although you may not be able to execute a particular statement.

The SqlConnection remains open when the severity level is 19 or less. When the severity level is 20 or greater, the server usually closes the SqlConnection. However, the user can reopen the connection and continue. In both cases, a SqlException is generated by the method executing the command.
For information on the warning and informational messages sent by SQL Server, see the Troubleshooting section of SQL Server Books Online.




 
Old July 14th, 2006, 02:25 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
I have the same problem...
have you found a solution?If so could you also pls explain it to me...

thanx!

Can


 
Old December 27th, 2006, 08:39 PM
Registered User
 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The easiest way to fix this is:

In Solution Explorer right click My Project then select open
on the left side of form select settings
click on the value column and select the database file for the
chapter your working on.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 20, p.987 Runtime Error Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 0 January 17th, 2008 04:05 AM
SQL runtime error 3061 chef01_99 Access VBA 2 June 17th, 2007 06:27 AM
sql help got Microsoft VBScript runtime error '800 marky1216 Classic ASP Databases 0 December 9th, 2005 12:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.