Adding a SQL Server Database to an ASP.NET Web Page on Visual Studio 2013

I am trying to add a SQL Server database item to my ASP.Net site.

I have SQL Server 2012 installed, but when I click add in Visual Studio, I get the following error

To connect to SQL Server database files (.mdf), you must install and run SQL Server 2005 Express or SQL Server 2008 Express on the local computer. The current version of SQL Server Express can also be downloaded at the following URL: "

I am wondering if I can work from 2012 the way it would be from 2005/2008, or do I need to download 2005/2008 to get this feature?

I just ask because it seems a little strange that VS2013 is not compatible with SQL Server 2012 ...

PS: I try to follow the next tutorial, and that’s why I hope this works, so I can follow the tutorial as intended. " http://www.youtube.com/watch?v=Tyr1YXpNOrk "

+3
source share
3 answers

I am wondering if I can make it work with 2012 as it would be from 2005/2008.

What for? As far as I know, he was fired for the bad problems that he created.

  • Visual Studio 2013 comes with a custom version of the MSSQL declaration (localdb), which is not required for installation and is used in the case.

  • sql db - (, ), .

0

SQL Server Management Studio , asp.net vs 2013 web.config


vs 2013 Server Explorer SQL Server db sql 2012 db

0

Yes This can be done through Visual studio, and here is the link to the AZ manual. This will be IIS for deploying the ASP site.

http://www.asp.net/mvc/tutorials/older-versions/models-(data)/creating-model-classes-with-linq-to-sql-cs

Hope this works as it works for me

-1
source

Source: https://habr.com/ru/post/1526575/


All Articles