Hello Team,
Please with C# window Application when I run the setup on my PC it work fine but when I run it on a different PC I keep getting this error, it seems like the app keep losing it connection with the sqlserver, 
Hello Team,
Please with C# window Application when I run the setup on my PC it work fine but when I run it on a different PC I keep getting this error, it seems like the app keep losing it connection with the sqlserver, 
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Emmmanuel FIADUFEPosted Oct 19, 2022, 12:24 PM
Hello team, I have found the solution on how to deploy the application, I went into the set up folder to upload Sqlserver file and it works for me. Thank you all for your help.
Emmmanuel FIADUFEPosted May 23, 2022, 6:40 PM
Muhammad Imran AnsariPosted May 23, 2022, 4:00 PM
Emmmanuel FIADUFEPosted May 23, 2022, 2:51 PM
This is my code please
Data Source=(LocalDB)\v11.0;Integrated Security=SSPI;AttachDbFilename=|DataDirectory|AtteyNew.mdf;Integrated Security=True;
// Unit Class ConnectionString Code
public string MyConnection()
{
con = @"Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\App_Data\AtteyNew.mdf; Initial Catalog=Attey;Integrated Security=True";
return con;
}