martincostello/sqllocaldb

Path of SQL LocalDb

YakkingYak opened this issue · 1 comments

Is it possible to control where the localdb files will be created?

Currently, it seems like it is creating in C:\Users<username>\

Is it possible to create to another location, such as C:\Users<username>\AppData\Local<companyName><AppName>\ ?

As far as I'm aware, you can't change this programmatically through the SQL LocalDB instance API. You would have to create an instance, and the programatically interact with the SQL Server instance via issuing commands to tell it to create your user databases in a different location as per the documentation.