How to create an exe file with local database attach ? (Visual Studio C#)

0
40

I would like to create an exe file with database mdf file attach. I try to run the exe file on client computer. It give this error.

enter image description here
My SQL connection code

        SqlConnection con = new SqlConnection(@"sourcereposAutomationAutomationDatabase1.mdf;Integrated Security=True");

Solution Explorer
enter image description here

LEAVE A REPLY

Please enter your comment!
Please enter your name here