I have created an application in Visual Studio which uses SQL Server LocalDB 2016 for storing data. I created 2 databases using SQL Server Management Studio 17 (SSMS) and each contains a number of tables.
Instead of using the automatic instance (MSSQLLocalDB
) for LocalDB, I created my own instance called MyInstance
. Using SSMS, I attached these two databases to my instance.
I would like to publish the application with the .mdf
files so that it can be used on client's computers.
Is there a way to do this so that the client's PC will also have MyInstance
on their PC and the application and database files run as though on my PC?
As the client will install the application themselves, I am hoping the instance can exist/be created without my interaction.