Can SQL Server Express LocalDB be connected to remotely?

前端 未结 3 689
北荒
北荒 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条回答
  •  失恋的感觉
    2020-11-29 11:26

    This isn't a fresh thread, but I would like to share my experience with SQL Server Express database LocalDB.

    I have a WPF C# project using SQL database with LocalDb Engine. It is working fine no problem, I can access the database. I wanted this program to work on network with more PCs. In my scenario on the network another PC can use the database from my PC (using UNC path in the connection string).
    It seemed to me the remote connection is working. But when the remote PC is connected, I could not connect to my database. If I connected first the remote PC could not connect. So this tells me that the remote connection is working, but the multiple connection is not allowed.
    OK, I didn't give up and I run the program from my PC twice and I saw it is working which tells me that the same SQL LocalDB engine can connect several times.

    I hope this experience will help someone. Thanks.

提交回复
热议问题