hello everyone!!!!
I have window application with "student.md f " with it.
I deployed this project successfully. Its ".exe" is running successfully on my system as connection string has exact path to "student.md f ".
Connection string is=
SqlConnection con1 = new SqlConnection(" Data Source=.\\SQLEX PRESS;AttachDbF ilename=D:\\Win dowsFormsApplic ation1\\student .mdf;Integrated Security=True;U ser Instance=True") ;
but when i run ".exe" on other system, error::'connect ion to database fails' comes.
so how can i deploy "student.md f" along with application and than what will be connection string in that case ??
thanks in advance...
I have window application with "student.md f " with it.
I deployed this project successfully. Its ".exe" is running successfully on my system as connection string has exact path to "student.md f ".
Connection string is=
SqlConnection con1 = new SqlConnection(" Data Source=.\\SQLEX PRESS;AttachDbF ilename=D:\\Win dowsFormsApplic ation1\\student .mdf;Integrated Security=True;U ser Instance=True") ;
but when i run ".exe" on other system, error::'connect ion to database fails' comes.
so how can i deploy "student.md f" along with application and than what will be connection string in that case ??
thanks in advance...
Comment