I've a connection string in my project for single mdf file as:
Private conn As New SqlConnection("Data Source=(LocalDB)\v11.0;AttachDbFilename=|datadirectory|BillAdjustment.mdf;Integrated Security=True")
Private cmd As New SqlCommand
This connection works perfect on my pc but don't work on another pc and gets error:
A network related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.
My database installs in appdata
folder.
is there any solution?