TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
krish sin
NA
17
1.3k
how to restore backup data using asp.net
Jan 5 2017 6:33 AM
protected void Button2_Click(object sender, EventArgs e)
{
try
{
con.ConnectionString = ("Data Source=SYSTEM-6-PC;Initial Catalog=Master;Integrated Security=True");
con.Open();
string test = "D:\\backupdb\\05012017_130700.Bak";
sqlcmd = new SqlCommand("Restore database EmpolyeeTable from disk='D:\\backupdb\\05012017_130700.Bak'", con);
sqlcmd.ExecuteNonQuery();
Response.Write("restore database successfully");
}
catch (Exception ex)
{
Response.Write("Error During backup database!");
}
}
Reply
Answers (
4
)
Online Seat Booking .how to select Seat in booking
Should sumarize totals's column with blank rows as null or 0