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 October 10th, 2006, 03:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create Database Error

When I use VB2005EE to add a database to my project. See Ch.3 - Page 46. I get the following error.

Quote:
quote:
Microsoft Visual Basic 2005 Express Edition

             The file "H:\MyDocuments\Visual Studio 2005\Projects\MyFirstApp\MyFirstApp\Database2.mdf" is on a network path that is not supported for database files.

             CREATE DATABASE failed. Some file names listed could not be created. Check related errors.

             User does not have permission to alter database 'D2F7C226-9B40-4F31-8093-52B099626AD1' or the database does not exist.
             ALTER DATABASE statement failed.

             User does not have permission to alter database 'D2F7C226-9B40-4F31-8093-52B099626AD1' or the database does not exist.
             ALTER DATABASE statement failed.

             The database 'D2F7C226-9B40-4F31-8093-52B099626AD1' does not exist. Use sp_helpdb to show available databases.
What is the cause and the remedy for this problem?


Rand
__________________
Rand
 
Old October 12th, 2006, 12:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The problem seemed to go away when I moved the database and project directory trees to a local workstation as opposed to a directory tree on the network.

Rand
 
Old October 17th, 2006, 12:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The VB2005EE (both the one on the CD and the newer (SP1) version at the Microsoft download site seem to have problems with default directories.

If your windows default directory is on a network drive you get the error shown above. If you try moving the application to a local directory (folder), you get other problems - the database won't connect.

Perhaps it is only designed to work when the default MyDocuments folder is on the C: drive. If this is the case, it should be clearly documented - which it is not.

Rand
 
Old January 26th, 2008, 06:15 PM
Registered User
 
Join Date: Jan 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I experienced the same problem. I installed the CD at work and at home. It seems there are fewer problems generally on my home PC, which doesn't bode well because SQL Server is intended to be run over networks!






Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Database Error when Attempting SQL Security wirerider ASP.NET 2.0 Professional 1 March 6th, 2007 07:19 PM
How to create a Database koushikroy2001 SQL Language 2 January 4th, 2006 04:03 AM
Create database Yee MySQL 2 November 5th, 2004 06:14 AM
Programmically create a database? JeffMM Classic ASP Databases 7 March 20th, 2004 05:32 PM
How to create a new database? gpc Classic ASP Databases 17 December 19th, 2003 10:24 AM





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