Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Can VS2017 target a different SQL Server version?

$
0
0

Hi All,

I'm using Visual Studio 2017 Express and SQL Server 2014 Express.

I created a new ASP.NET Web Application Project - Web Forms withIndividual User Accounts authentication.

This, of course, means that as soon as I run the application and register a new user, an SQL database is automatically created in theApp_Data folder. That all works fine.

However, I'd like to be able to access this database using SQL Server 2014 Express - because you get more options (such as backup and restore) than inVS2017's SQL Server Object Explorer.

But when I use SQL Server 2014 Express to attach the database I get the message:

"The database <DB-NAME> cannot be opened because it is version 852. This server supports version 782 and earlier. A downgrade path is not supported."

Okay so VS2017 uses a more up to date SQL Server than SQL Server 2014 (versions 13.0.4001 and 12.0.2269 respectively).

So I can't access it from SQL Server 2014 and I can't installSQL Server 2016 because I'm using Windows 7 and don't fancy upgrading the entire operating system.

Or going back to VS2015.

Or buying a new computer.

So my questions are:

(1)  Is there some way to backup and restore a database using VS2017's SQL Server Object Explorer?

(2)  And just as you can target a project to an earlier .NET Framework version, can you do the same with SQL Servers? Is there some way I can tell VS2017 to use SQL Server 2014 rather than itsbuilt in and apparently newer one?

Any assistance would be very gratefully received.

Smile

 


Viewing all articles
Browse latest Browse all 3509

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>