Reputation: 133
I am in the process of designing a database application that will ultimately be a multi-user application. However for ease of development purposes I was planning on using the built in local .MDF
file for Visual Studio for now.
Once I am ready to move this into a multi-user environment is it just a matter of moving the .MDF
to the server and attaching it, then changing a connection string? Or is it going to be a project in of itself and I am better off just using the SQL Server from the beginning?
Edit: it would be considerably easier for me to do development from the .MDF
because I do a lot of work from home and that would mean I need to use VPN (Very slow).
Another option I am considering is to use SQL Server Express on my local machine and then migrate that to the production server when I am ready.
Upvotes: 0
Views: 710
Reputation: 380
As already said by Erik, you are already using SQL server.
Just so you know, I'm using the .MDF file for development and once the changes are done, I publish them to production.
To do this, You need to keep following points in mind.
What I follow is below (All the steps are in Visual Studio 2015 Update 3):
All the schema differences will be listed in the area below the toolbar.
The selected changes from your mdf file will be copied to the production database. In case of any error, the errors will be displayed in the results.
Upvotes: 1
Reputation: 9306
You are already using SQL Server. The difference here is whether or not you want to attach it to a JIT SQL Server instance or by connecting directly to a SQL Server instance.
If you plan to use a real SQL Server instance anyways in the future, it's best to just avoid the App_Data
folder.
Upvotes: 0