Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : 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 August 23rd, 2011, 08:41 AM
Registered User
 
Join Date: Aug 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Database issues

I have installed on my computer the Enterprise edition of SQL 2008 Server and while working on the TRY IT OUT of Chapter 12: On double-clicking the .mdf sql server database file in my VS2010 solution explorer, I got a "required component missing report alert" demanding for either SQL 2005 or SQL 2008 Express edition to be installed and running.
My question is : can't I migrate/export the above database file to my installed Enterprise edition and then use it for this try it out exercise? If this is possible, how do I go about it, please?
Regards.
 
Old August 23rd, 2011, 12:34 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Yes, you can. You can attach the MDF file to SQL Server and then modify the connection string so it points to your database. Chapter 19 and Appendix B have more information.

However, if I were you I would also install SQL Server Express. It's free and can be run side by side with your version of SQL Server. Many code examples, books and even tools (VWD 2010 for example) assume the presence of SQL Express.

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!
The Following User Says Thank You to Imar For This Useful Post:
Paire (August 24th, 2011)
 
Old August 24th, 2011, 04:51 AM
Registered User
 
Join Date: Aug 2011
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
Hi there,

Yes, you can. You can attach the MDF file to SQL Server and then modify the connection string so it points to your database. Chapter 19 and Appendix B have more information.

However, if I were you I would also install SQL Server Express. It's free and can be run side by side with your version of SQL Server. Many code examples, books and even tools (VWD 2010 for example) assume the presence of SQL Express.

Cheers.

Imar
Thanks Imar!
My VS2010 came with an Express edition but I felt it was superfluous to my requirement when I intalled my SQL Server Enterprise so I had it removed.
Based on your counsel, I'll re-install and provide feedback.
Thanks, once more.





Similar Threads
Thread Thread Starter Forum Replies Last Post
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 08:07 AM
SQL Connection/Database Issues fs22 ASP.NET 2.0 Basics 0 August 1st, 2006 03:17 PM
database issues p2ptolu Classic ASP Databases 1 June 10th, 2005 04:28 AM
Access issues with ASP and a MS Access Database rj_conceptsnrec.com Classic ASP Databases 2 May 19th, 2005 12:44 PM
Issues Connecting to an Access 2000 Database... Jonny ADO.NET 1 February 11th, 2004 09:54 AM





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