Hi all,
I am novice in the c #.
Having completed the Application contains SQL database.
But when I run on another machine gives me an error message as follows:
http://img103.herosh.com/2009/09/02/819895428.jpg
Please note that I have the installation of the .net framework, And the connection string I used is:
SqlConnection cn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyData.mdf;Integrated Security=True;User Instance=True");
Please Help me...
Loading
Kirtan PatelPosted Sep 2, 2009, 8:56 PM
because SQL Server Database Need some services running to manipulate data
:)
belal shakatraPosted Sep 3, 2009, 9:12 AM
Master BillaPosted Sep 2, 2009, 10:39 PM
if your application as web you don't need to sql database in client pc, you need in server. but if its a stand alone application you need database in every machine. so you should have sql server express edition.
so sql server express is free, you can keep all the places.
thank you
belal shakatraPosted Sep 2, 2009, 8:01 PM
I mean: want to ship a database with the application but not require sql express
on different machine ....
belal shakatraPosted Sep 2, 2009, 11:31 AM
The problem is solved, But how I can use SQL database without install Sql Express on client machine???
Kirtan PatelPosted Sep 2, 2009, 7:26 AM
Follow Three Steps and you will not get that error.
dont forget to mark "Do you like answer" please it will give me some credits :)
Step 1
Step 2
Step 3
Restart Computer