I connected my database as a (sql server database file) to mt c# .net application. the connection string was given as a relative path. the client computer asks for sql express server, what should i do? which application should i install in the client pc?
-
1Show us your local relative path.LaGrandMere– LaGrandMere2010-12-15 17:04:17 +00:00Commented Dec 15, 2010 at 17:04
-
"Data Source=.\\SQLEXPRESS;AttachDbFilename=\""+Application.StartupPath+"\\defects.mdf\";Integrated Security=True;Connect Timeout=30;User Instance=True");harshani– harshani2010-12-15 17:17:16 +00:00Commented Dec 15, 2010 at 17:17
-
@harshani: please don't post stuff like connection strings into comments - this is very hard to read.... instead: update your original question by editing it and nicely format your connection string!marc_s– marc_s2010-12-15 17:21:10 +00:00Commented Dec 15, 2010 at 17:21
-
Why didn't you attach the database in the normal way instead of using attchdbfilename?Jahan Zinedine– Jahan Zinedine2010-12-15 17:21:38 +00:00Commented Dec 15, 2010 at 17:21
-
sorry guys.....when you attach the database file in the normal way the connectionstring is developed automatically, so the the db path is given locally, when the software is installed it gives another error as "cannot find c:/user/harshani.......db" ,when i gave the above connection string that error didnt come up but asks for SQLEXPRESS on the machine. hope u can understandharshani– harshani2010-12-15 17:34:23 +00:00Commented Dec 15, 2010 at 17:34
|
Show 1 more comment