To add existing item (database.mdb ) to my app_data folder

Posted by Anishabathija under ASP.NET on 1/17/2013 | Points: 10 | Views : 1733 | Status : [Member] | Replies : 1
Hey ,

I am unable to locate my database halloween.mdb in the c:/Prog files/Microsoft SQL Server/.

I want to add this to my app_Data folder and use that.
How could I proceed with that?


Posted by: Ranjeet_8 on: 1/17/2013 [Member] [MVP] Gold | Points: 25

Refer this url

<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

Please Mark As Answer if this helps you


Anishabathija, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response