3

I am developing a software which requires sql server. But for 50 MB application it is not good idea to tell customers to install SQL Server. So I think it is better to use SQL Server Express LocalDB.

I want to give feature of accessing my app from Local area network. But I am not getting any related topics to do this.

Is it possible to access SQL Server Express LocalDB on Local Area Network?

What are the limitations of SQL Server Express LocalDB compared to SQL Server?

  • Have you considered SQL Server Express? (Rather than express local db). – Sir Swears-a-lot Jul 6 '16 at 10:13
  • Can you confirm you specifically require a version of Microsoft SQL Server rather than your application needs a database that use Structured Query Language. – Sir Swears-a-lot Jul 6 '16 at 10:18
  • @Peter Currently I am implementing application in SQL Server Express. I am searching for other alternatives only because of its size. – IT researcher Jul 6 '16 at 10:34
  • 1
    If you want the features of SQL Server then I think Express is as low as you want to go. Anything less than than like embedded edition is so limited its a pain to work with. If you don't need the security or scalability of SQL Server you could consider MS Access? But if its truly going to be a lan based multi user system express is far superior. – Sir Swears-a-lot Jul 6 '16 at 10:45
  • @SirSwears-a-lot and IT researcher: just to be clear, you wouldn't want to use LocalDB for an app that can be accessed across the network. LocalDB is a user-mode program, meaning there is no service that runs independently of a user session. So someone would need to log into Windows in order to start the instance, and it would shut down when they logged off. You might be able to set up a Windows Scheduled Task to start up an instance outside of a login session, but that is clearly outside of the intended purpose of LocalDB. – Solomon Rutzky Feb 5 at 18:11
7

LocalDB cannot be accessed remotely, it's by design and documented.

Here is a description of LocalDB.

Here is a list of LocalDB features and limitations.

I don't see how installing SQL Server can be a problem. 120 MB is not that big nodays, even for small applications. You can embed the setup in your application and ship SQL Express with your setup kit. If you need a small footprint SQL Server Edition, consider using SQL Server Compact Edition.

  • Is there any ways to me other than installing SQL server ? – IT researcher Jul 5 '16 at 13:21
  • @ITresearcher Updated my answer – spaghettidba Jul 5 '16 at 13:29
0

The mdf/ldf files can reside on a server share but I believe only one PC can access the files/database at a time (i.e. no concurrent access from multiple clients running their own LocalDB instance). That's dissimilar to MS Access where multiple PCs can connect to a shared mdb file residing on a server share.

From the documentation:

The LocalDB files can only be opened by one instance of LocalDB at a time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.