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 October 30th, 2015, 07:51 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default Chap 12, p411 - Creating the SQL Server Sample Database

Hi again Imar,

I've had the same problem as many others with accessing the (LocalDB)\v11.0 in the SMSS's.
I've installed SQLServer 2014, 2012 full, 2012 Express, and it seems that none of them installed LocalDB.

I tried to download it apart, but (see image, well I cannot attach images here?) it says:

"Microsoft SQL Server 2012 Express LocalDB"
"Installation of this product failed because it is not supported on this operating system. For more information..."

My machine is Windows 8.1.
I have installed Visual Studio Community 2015
And SQL Server 2012

Are they a good formula?

Can I keep doing the next chapters without any contact with SQL Server, and only using your source .mdf files?

Thanks for the help.

PS: I think for developers who only want to refer to tryouts, maybe the next edition you can include an index for the # of tryouts.
 
Old October 31st, 2015, 06:23 AM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Well, I had to download the 6GB!! version of Visual Studio 2013, to get the SQL Express LocalDB, and it worked! Also I change in the Web. config the Data source from (LocalDB)\v11.0 to (LocalDB)\MSSQLLocalDB in the connectionStrings.

Now I have access to LocalDB with the SQL Server 2012 that came with VS2013, but still using with VS2015.

I didn't need to reinstall Windows as some post on the Internet said or to do a workaround.

Hope this works for others too.
 
Old October 31st, 2015, 06:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Have you tried connecting to (LocalDB)\v12.0? That's the version installed with VS 2015.

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 October 31st, 2015, 07:14 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Hi, I tried with (LocalDB)\v12.0, didn't work.
It seems that VS2015 can see the DBs, but in the SQL Server Object Explorer, which I tried to drag a table from, but it dragged it as <p> element... and still considering installing VS2013.

I'm stuck in the step 6, p444

Greetings.
 
Old November 1st, 2015, 12:37 AM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Well, as I promised I went back to VS2013... and yes, my predictions were right, Now I can keep working on these tryouts (Chapter 12 forward) "smoothly", hope until the end of the book and beyond.

Thanks.
 
Old November 1st, 2015, 12:27 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Although I can preview the results of the pages that work with databases(db) in the localhost/, I cannot view the db's in the server explorer of VS2015 because it says is not compatible with the current SQL Server version (2014), so I work with VS2013 when I need to add tables or similar and SQL Server 2012. In fact I had to attach the PlanetWrox to locallb/v.11.0 afterwards due to the experiments I did to find the version of SQL/VS that works for my machine from the chapter 12.
 
Old November 1st, 2015, 02:38 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> but in the SQL Server Object Explorer, which I tried to drag a table from

You need the Database Explorer (called the Server Explorer on full versions of Visual Studio) and not the SQL Server Object Explorer.

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 1st, 2015, 03:09 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks Imar, I saw the difference, that's why now I understand VS2015 works well with SQL Server 2014, but not with the 2012 version. That's why I installed the VS2013 to not waste time figuring out compatibility issues, I'm interested more in learning the concepts and tools of the VS environment.

By the way, How long did it take you to write the book? For me looks like a year at least.

Thanks for the help,

PS:

Here is an example of the idea I told you yesterday for future editions, to put like an index for the tryouts. I put 3 stars (*) when I finished that tryout to keep record where I am.

Chap14
489***/LINQ to Entities Example
501***/Queries and Anonymous Types
505***/Model Binding = Using SQL Server to add new tables
513***/Inserting and Deleting Data with ListView
523***/Strongly Typed Data-Bound
 
Old November 1st, 2015, 03:59 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Aren't all the TIO's listed in the main Index?

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 1st, 2015, 04:15 PM
Authorized User
 
Join Date: Oct 2015
Posts: 58
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Well, not exactly. Sometimes the title of the TIO's does not match with what's in the index (main). And at least for me that I'm trying to follow the sequence, my only reference is the page#. Maybe putting a number to the TIO could clarify if want to do it again.





Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Chap. 12 & open of .mdf database daveharney BOOK: Beginning ASP.NET 4 : in C# and VB 1 January 4th, 2012 08:10 AM
Chap 14 - Adding SQL Server Database jkoyle BOOK: Beginning ASP.NET 4 : in C# and VB 1 August 10th, 2011 03:55 PM
No sample codes for Chap 12? cJeffreywang BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 May 31st, 2011 07:44 AM





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