I doing the pro on c# contain sql database 2005, and it worked 100% when I run on my PC.
And it show error message when I run it on other PC.
This is Connection statement I used:
|
SqlConnection cn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User Instance=True");
Regards...
Kirtan PatelPosted Aug 4, 2009, 9:43 PM
but
if you Just Want to Run the Application You Programmed on other pc.
You Need FrameWork + SQL Server Installed on PC Which you want to use to Run Application you Programmed in C#
belal shakatraPosted Aug 4, 2009, 9:35 PM
But How I can Program on c# and use database, without install SQL on other pc.
If no way, So this is problem in c# with me.
Please help me....
Kirtan PatelPosted Aug 4, 2009, 8:55 PM
You need to install SQL Server Express Edition+.Net Framework to Run you Project on Another PC .
if you dont install it will generate exception and Program will be terminated
Happy Coding :)
Have a Nice Day