i creating exe file of my c# window application but my client machine i dont get databse
my connection string is
conn = new SqlConnection(@"Data Source=.\sqlexpress;AttachDbFilename=C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\Mahallu.mdf;Initial Catalog=net;Integrated Security=True");
Dont get databse my connection string
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dipankar BiswasRank #992 · 2K reputationPosted Nov 13, 2014, 10:00 PM EST
Server=.\SQLExpress;AttachDbFilename=C:\MyFolder\MyDataFile.mdf;Database=dbname;
Trusted_Connection=Yes;
Attach a database file, located in the data directory, on connect to a local SQL Server Express instance
Server=.\SQLExpress;AttachDbFilename=|DataDirectory|mydbfile.mdf;Database=dbname;
Trusted_Connection=Yes;
http://www.connectionstrings.com/sql-server-2012/
Riddhi ValechaRank #794 · 2.9K reputationPosted Nov 13, 2014, 10:10 PM EST
Did you install Visual Studio (what ever version in which the application is developed) in the client machine.