Wrox Programmer Forums
|
BOOK: Wrox's SQL Server 2005 Express Edition Starter Kit ISBN: 978-0-7645-8923-2
This is the forum to discuss the Wrox book Wrox's SQL Server 2005 Express Edition Starter Kit by Rajesh George, Lance Delano; ISBN: 9780764589232
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Wrox's SQL Server 2005 Express Edition Starter Kit ISBN: 978-0-7645-8923-2 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 March 22nd, 2006, 09:56 AM
Authorized User
 
Join Date: Mar 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Humble:

trying out your third example.
Gives me the following error when I try to run:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Data.ConstraintException: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
   at System.Data.DataSet.FailedEnableConstraints()
   at System.Data.DataSet.EnableConstraints()
   at System.Data.DataSet.set_EnforceConstraints(Boolean value)

I really do no understand why.
I will continue working on this.

Regards, i

 
Old March 22nd, 2006, 12:45 PM
Authorized User
 
Join Date: Mar 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Humble:

Success with the Update!
Thank you! Did follow your example (3) and created the database/tables in the Manager.

Just have to write that down and put it in my book!
Hopefully you will visit this forum more, there might be surprises along the way (c;=

Regards, Ingimar

 
Old March 23rd, 2006, 05:29 AM
Authorized User
 
Join Date: Mar 2006
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Humble, Sturdy.

The upgrade worked.

Now I would like to work with my database again in the Management Studio Express.
First I did not get connected, due to the fact that the IDE was connected to my database.
This is what I assumed.
Closing down the IDE, trying to open my database in the Management Studio Express.

The Management says that the database is used by another process ....
Which process would that be ?
The Log says:
2006-03-23 09:59:17.00 spid51 Fel: 17207, allvarlighetsgrad: 16, tillstånd: 1
2006-03-23 09:59:17.00 spid51
FCB::Open: Operating system error 32(Det går inte att komma åt filen eftersom den används av en annan process.)occurred while creating or opening file
'C:\Program\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\MyDatabase.mdf'.
Diagnose and correct the operating system error, and retry the operation.


This will probably work if I turn off the computer and start it all over ....

Any suggestions, or do you know of other forums just dealing with SQL Server ?

Regards, Ingimar


 
Old July 12th, 2006, 03:39 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Humble Weeble,

I, too, spent a day trying to understand why the chapter 3 and chapter 4 sample did not update. I tried your solutions #1 and #2 and they worked for me.

It was a big help and time saver to read your post.

Thanks.

search words: chapter 3 chapter 4 update does not work no update


Quote:
quote:Originally posted by Humble Weeble
 1. I've tried this one and it works
a. Select the database in Solution Explorer
b. Locate the 'Copy to Output' property in the Properties window
c. Change it from 'Copy always' to 'Do not copy'
d. If necessary manually copy the database (.mdf) file to the output (bin/debug) folder
On future builds the version in the output folder will not be overwritten with the one in the project folder.

2. Someone has also suggested that you can do this and I have used it in conjunction with number 1 above.
a. In Database Explorer right-click on the database
b. Select Modify Connection
c. Select Advanced options
d. Search for the property AttachDbFileName
e. Point it to the bin/debug version
The thing to bear in mind is that it only works in Debug mode





Similar Threads
Thread Thread Starter Forum Replies Last Post
master-detail hhpatek ADO.NET 0 April 3rd, 2008 02:53 PM
Master Detail prasanta2expert Access VBA 1 October 1st, 2007 06:37 AM
master/detail beeyule Dreamweaver (all versions) 1 January 18th, 2005 02:59 AM
Detail-Master updating problem CW Classic ASP Databases 2 October 22nd, 2003 10:18 AM





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