Wrox Programmer Forums
|
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 October 28th, 2016, 07:22 AM
Registered User
 
Join Date: Oct 2016
Posts: 7
Thanks: 5
Thanked 1 Time in 1 Post
Default Chapter 13 SQL problem

Hi,

I seem to be having a problem after the exercise on page 471. When I create a new review it seems to update the reviews table which I can see in the server explorer on VS2015. However when i try to load the PlanetWrox db in MSSM2012 it doesnt load up and i get the message that says:

"TITLE: Microsoft SQL Server Management Studio
Cannot show requested dialog.
ADDITIONAL INFORMATION:
Cannot show requested dialog. (SqlMgmt)
Property Collation is not available for Database '[PlanetWrox]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)"

OR THIS:

"TITLE: Microsoft SQL Server Management Studio
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
For help, click: http://go.microsoft.com/fwlink?ProdN...r&LinkId=20476
ADDITIONAL INFORMATION:
The database 'PlanetWrox' cannot be opened because it is version 852. This server supports version 706 and earlier. A downgrade path is not supported. (Microsoft SQL Server, Error: 948)"



I think it's something to do with the versions and that everytime VS2015 updates the table it affects something with the versions.

Has anyone else had this problem?

Thanks

Harv
 
Old October 31st, 2016, 10:36 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Harv,

Sounds like you're running two different versions of SQL Server against the same database. 706 is SQL Server 1012, while 852 is 2016.

The following might help:

http://sqlserverbuilds.blogspot.nl/2...-versions.html
http://stackoverflow.com/questions/2...er-supports-ve

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:
harvazad (November 5th, 2016)
 
Old November 5th, 2016, 10:41 AM
Registered User
 
Join Date: Oct 2016
Posts: 7
Thanks: 5
Thanked 1 Time in 1 Post
Default

Thanks Imar,
Not sure what is going on with my machine. I seem to have a SQL Server 2016 installation from somewhere. I don't remember installing this unless it got installed with SSDT with VS2015. I've tried using the database provided with the download resources but everytime VS2015 goes anywhere near it, it tries to convert it and then it becomes unaccessable through the SSMS2012.

Really confused!!!?? :-(
 
Old November 6th, 2016, 07:44 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Try uninstalling the 1016 Express version and then install Express 2012. Alternatively, install 2012 Express side by side (you need to give it a new instance name during installation) and then in VS configure the express version to use under Tools | Options | Database Tools | Data Connections.

You also need to update your connection strings in web.config.

Another alternative is to skip Express altogether and point to your 2012 server in all your connections and connection strings.

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:
harvazad (November 7th, 2016)
 
Old November 7th, 2016, 07:56 AM
Registered User
 
Join Date: Oct 2016
Posts: 7
Thanks: 5
Thanked 1 Time in 1 Post
Default

Cheers Imar,

I'll give it a go.

Harv





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 13: context object problem dany96 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 6 July 9th, 2011 07:30 AM
Chapter 13 - Problem compiling Cart Dsypher BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 12th, 2007 01:34 AM
problem in chapter 13 derrida BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 July 28th, 2006 02:31 AM
Chapter-13-direct SQL command-ExecuteNonQuery erro lionking BOOK: Beginning ASP.NET 1.0 3 May 13th, 2004 10:42 PM
Chapter-13-direct SQL command-ExecuteNonQuery erro softdev BOOK: Beginning ASP.NET 1.0 6 February 22nd, 2004 07:55 PM





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