Copy database contents to app_data

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

I have developed a web application in VS 2008, and it uses Microsoft SQL as database.

Now, I have created the database and tables, and there is data in it.

How can I copy this same database along with its tables and contents, to my app_data folder in my website?

Which all files should I copy?

Is there any procedure to 'attach' a database?

I use Microsoft SQL to create databases and tables.


Posted by: Raj.Trivedi on: 2/20/2013 [Member] [MVP] Starter | Points: 25

Hello Anisha,

Check this article you will get the entire process of copying database into App_Data Folder

"Sharing is Caring"
Please mark as answer if your Query is resolved

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

Login to post response