-4

I wrote simple program with local database created in Visual Studio. It works well on my computer, but when I run it on another computer (without any SQL Server) it says it can't find server and advise to check that local database runtime is turned on in SQL Server.

How do I make my application that uses LocalDb run on a client computer that doesn't have SQL Server installed?

Nate Diamond
  • 5,525
  • 2
  • 31
  • 57
panda007
  • 17
  • 1
  • 8
  • 2
    Can't use the database if no database is installed. If you want something that you can release in a DLL (or embedded) form, look into SQLite. – cbr Jun 19 '15 at 16:27
  • 2
    You'll need to install the DB on that machine, or host one that the client can all access. – Servy Jun 19 '15 at 16:27
  • @Servy you mean i need install ms sql server express on client computer? – panda007 Jun 19 '15 at 16:36

2 Answers2

2

You don't need to install the entire SQL Server Express on the client computer, you only need the SqlLocalDB.msi.

Source

Community
  • 1
  • 1
Nathan
  • 1,220
  • 3
  • 15
  • 26
0

You need to install the database where the client can access it, like the current local machine or somewhere on their network. In any case you'll work, you'll need some kind of database.

Fabio Martins
  • 55
  • 2
  • 9