Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : 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
  #11 (permalink)  
Old April 4th, 2013, 03:03 PM
Registered User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default ongoing SQL problems

In Visual Studio 2012 I have the SQL Server instance as (LocalDB)|V11.0. This incidentally works fine.

In VWD 2010 I have SQL Server instance showing as just SQLEXPRESS.

Also it might be worth pointing out that when I connect to a database in SQL Server Management Studio it appears to connect to ..\SQLEXPRESS(SQL Server 11.03128 - MIKESPC\..

I am wondering that because I have SQL Server 2012 as well SQL Server 2008 R2 on my PC this is the root cause of the problem and that somehow VWD 2010 and SQL Server Management are attempting to use SQL Server 2012. Maybe it would be best to uninstall the SQL Server 2012 ?
  #12 (permalink)  
Old April 5th, 2013, 08:44 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, it seems that SQL Express is SQL Server 2012, and SQL 2008 R2 has a different name (could be just a . or your machine name, or another named instance).

Uninstalling just 2012 won't help, as 2008 R2 then still doesn't use the SQLExpress name. You would need to uninstall both and then reinstall 2008 R2.

However, you could also leave everything as is and use SQL Server Management Studio to manage your database and its objects.

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:
mikeyw (April 7th, 2013)
  #13 (permalink)  
Old April 7th, 2013, 02:59 PM
Registered User
Points: 40, Level: 1
Points: 40, Level: 1 Points: 40, Level: 1 Points: 40, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2013
Posts: 9
Thanks: 1
Thanked 0 Times in 0 Posts
Default thanks

Finally got through chapter 12.

Being something of a novice I didnt know how to use SQL Server Management Studio to resolve the problem. Uninstalled SQL 2012 & SQL 2008 R2. Reinstalled SQL 2008 R2. Then got this message:

'Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.'

Deleted contents of C:\Documents and Settings\username\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS as recommended in other posts and it now works! Took me ages to sort it out.

Thanks again.
  #14 (permalink)  
Old April 7th, 2013, 04:39 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Glad it's working now....

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!
  #15 (permalink)  
Old April 8th, 2013, 12:46 AM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default This sounds like to me....

like this Mike person is trying to access a SQL Server 2012 database using SQL Server 2008 tools. At least that is what it sounds like to me, based on what I am reading. You need to have Visual Studio 2012 to go against the SQL Server 2012 databases that you are using with your book is that not correct? I have the SQL Server 2008 full version on my computer that runs with Visual Studio 2012-10. I was wondering can you use SQL Server 2008 databases with Visual Studio 2012 without having any compatibility problems?
  #16 (permalink)  
Old April 8th, 2013, 06:24 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
like this Mike person is trying to access a SQL Server 2012 database using SQL Server 2008 tools.
Nope; as you can see in the original thread, this is about using Visual Studio to manage SQL Server databases, not abut using Management Studio. And if I am not mistaken, you can use SQL Server Management Studio 2008 R2 to manage a 2012 database.

Microsoft dropped some database management support in VS 2012 when connecting to SQL 2012; that's the real issue here, which can be worked around by using SQL 2008, or by using SSMS.

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!
  #17 (permalink)  
Old April 8th, 2013, 11:36 AM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default So now I am even more confused.

When I installed Visual Studio 2012 on my box, that already had on it SQL Server 2008 and Visual Studio 2010 can I use your book to create SQL Sever databases in Visual Studio 2012 on SQL Server express 2012 that is automatically installed on when you install Visual Studio 2012? In other words should I use SQL Server 2008 or SQL Server Express 2012( that comes installed out of the box when you install Visual Studio 2012) to do the exercises that you have in your book?
  #18 (permalink)  
Old April 8th, 2013, 11:50 AM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default If I can't use SQL Server 2012....

that comes right out of the box on Visual Studio for the exercises in your book maybe I can by the SQL Server 2012 developer's edition, which is a full blown edition of SQL Server 2012 and only cost about $40 to buy online. Do you recommend that we take that route or can we just get by with SQL Express that is installed out of the box when we installed Visual Studio 2012 without any real problems or hassles?
  #19 (permalink)  
Old April 8th, 2013, 01:38 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

This book assumes you're using SQL Server Express 2012 Local DB. You can use another version of SQL if you want. Full details are in the database chapters and appendix B. I recommend to use Local DB for the exercises in the book. I also use it a lot myself for regular development, even though I have the dev and other additions as well.

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!

Last edited by Imar; April 9th, 2013 at 02:22 AM..
  #20 (permalink)  
Old April 8th, 2013, 07:10 PM
Friend of Wrox
Points: 1,905, Level: 17
Points: 1,905, Level: 17 Points: 1,905, Level: 17 Points: 1,905, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2011
Posts: 411
Thanks: 13
Thanked 7 Times in 7 Posts
Default Okay I finally figured it out.

Disregard this post!

Last edited by vbboyd; April 8th, 2013 at 09:21 PM..




Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with chapter 12 happyandstable BOOK: Beginning ASP.NET 4 : in C# and VB 5 March 7th, 2012 11:28 AM
Chapter 12 SQL File? Any SQL files? ripcurlksm BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 20th, 2008 06:49 PM





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