I have some problem. I am writing program to control company's budjet. I use two server databases: financeDB and EmployeesDB. But users should be able to use this soft without connection to server, for example at home. So I have a question: how I can provide connection to local DB withont SQL Server installed on PC. I have exception, that programm cann't connect to server.
1 Answer
You can't unless MS SQL Server is locally installed, MS SQL Server is not portable. Use SQL Server Compact if you want a portable app that needs functionalities similar to MS SQL Server.
Here is the link to the product -
It is free and can be downloaded from MS Downloads.
5 Comments
igor_d
But there are a lot of programms which use databases. What about them? If user don't have sql server, how this programms connect to DB?
brainless coder
There are also SQLLite. But the queries are not similar to MS SQL server.
igor_d
And what do you recomend to use? It is problem to instal sql server on every PC. There are about 50 users and I don't have possibility to instal server on every PC. To say nothing of memory which server use.
brainless coder
I already said, use SQL Server Compact, or use LocaDB. Here is a article on their benefits - blogs.msdn.com/b/jerrynixon/archive/2012/02/26/….
brainless coder
But the benefits of SQL Compact is that you can keep all your MS SQL Queries, there are some differences though, some features are not supported, you can read about them here - technet.microsoft.com/en-us/library/bb896140(v=sql.110).aspx