Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 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 November 26th, 2015, 05:56 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating the SQL Server Sample Database

I rewrote my earlier post to correctly indicate the correct chapter in the title and to provide more information. Hopefully, so I can get some response to allow me to continue on and finish the rest of the book. I am presently dead in the water.

My computer runs on Windows 10. I have been using Microsoft Visual Studio 2013 Professional up to Chapter 11 with no problems. I installed Microsoft SQL Server Management Studio 2012, the Express Edition.

I followed the steps 3, 4, and 5 of the Try It Out exercise. After I clicked OK, a error message appears.
Create failed for Database "PlanetWroxTemp" (Microsoft.SqlServer.Smo)

Additional Information:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo).

Directory lookup for the file "C:\Databases\PlanetWroxTemp.mdf" failed with the Operating System error 2(The system cannot find the file specified)
CREATE DATABASE failed. Some file names listed could not be created. Check related errors(Microsoft SQL Server, Error:5133)

Please help me to fix this problem.

Last edited by phztfte1; November 26th, 2015 at 05:57 PM.. Reason: Deleted extraneous information
 
Old November 27th, 2015, 01:10 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Is this fixed now as per your other post? If not, can you supply the *exact* steps that lead to this error?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 27th, 2015, 03:03 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating the SQL Server Sample Database

I followed Steps 1 through 5 of the Try It Out. When I clicked OK to create the database, that is when I got the error message.
 
Old November 27th, 2015, 03:41 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you create the folder c:\Databases first? And to which version of SQL Server are you logging in (what do see / enter in the Server name field in Fifue 12-3?)

If the folder exists, this may be a permissions issue. Try granting the Everyone account to the folder with full permissions (temporarily) to rule out permission errors. Chapter 19, section NTFS Settings for Planet Wrox at page 742 has more details.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 27th, 2015, 04:08 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating the SQL Server Sample Database

Yes, I created the Database folder first as instructed in Step 1 before I started SQL Server Management Studio. The version of SSMS I have is 11.0.3000.

I think I need to start all over again with "C:\BegASPNET\Site" as you indicated in my other post.

Thank you.
 
Old November 27th, 2015, 04:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> Yes, I created the Database folder first as instructed in Step 1 before I started SQL Server Management Studio.

Database or databases?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 27th, 2015, 04:26 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Default Chapter 12: Creating the SQL Server Sample Database

Sorry, Databases.
 
Old November 27th, 2015, 04:30 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you try granting the Eveyone account full control? This is SQL Server only and thus doesn't have much to do with the source for the chapter itself.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 27th, 2015, 06:03 PM
Authorized User
 
Join Date: Nov 2014
Posts: 91
Thanks: 2
Thanked 1 Time in 1 Post
Thumbs up Chapter 12: Creating the SQL Server Sample Database

Not yet. I think I will start with "C:\BegASPNET\Site" first.

Thank you very much.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7: Creating the SQL Server Sample Database phztfte1 BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 3 November 27th, 2015 04:32 PM
Chap 12, p411 - Creating the SQL Server Sample Database StvnSpnz BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 12 November 2nd, 2015 07:32 AM
Chapter 12 - sample database error? RedBirdOBX BOOK: Beginning ASP.NET 4 : in C# and VB 1 November 3rd, 2014 02:54 PM
Ch. 12 Connecting to the SQL Server Sample Database KingJames978 BOOK: Beginning ASP.NET 4 : in C# and VB 7 April 6th, 2012 02:39 AM
Chapter 12 SQL Server Access crazy BOOK: Beginning ASP.NET 1.0 1 September 20th, 2003 08:59 AM





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