Can SQL Server Express LocalDB be connected to remotely?

前端 未结 3 694
北荒
北荒 2020-11-29 11:02

I am looking into using the new SQL Server Express LocalDB (I think it is code named \"Denali\") for a desktop application.

It is currently running with SQL Compact

3条回答
  •  猫巷女王i
    2020-11-29 11:24

    No, SQL Server Express LocalDB doesn't accept remote connections.

    The idea with shared network folder might work, but only if you are able to make sure the LocalDB instance is shutdown before you try to copy the file. Also keep in mind that only one LocalDB instance can have any given database file open at the same time. and don't forget about the log files!

    Additional security warning: unlike SQL Server Compact databases, SQL Server Express databases (including LocalDB ones) are not designed as secure data exchange format. For instance, they can contain malicious code in .NET assemblies embedded in them. So you should never open databases from untrusted source.

    Maybe providing the customer with a simple tool that automates the backup process would be a better idea?

提交回复
热议问题