Pass your credential in connection string.
and use Persist Security Info instaed of Integrated Security
Data Source=.\SQLEXPRESS; AttachDBFileName=|DataDirectory|\MyDBName.mdf;
Persist Security Info=True;User ID=youruserid;Password=password"
check more connectionstrings
http://www.connectionstrings.com/sql-server-2008[
^]