this is my app.config file. I am using vs 2012 with c#.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<connectionStrings>
<add name="Small_Business_Management.Properties.Settings.businessdataConnectionString1"
connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\businessdata.mdf;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
now i included the database file businessdat.mdf in the solution.Now when i publish the application it is not working in other computers.It works fine in mine. In other computers it asks me to install sql server.How can i publish with a local database so that it works without installing sql server in other computers
If you want to use the LocalDB functionality of SQL Server 2012 you need to install the LocalDB functionality on each device you deploy to. You can find the installer here.
It is possible to do a silent install, so you can include it in your application installer if you have one:
more information here and here
If you really do not want to (or can not) install anything on the devices you deploy to, you can always check out sqlite