FREE tutorial,solution,RSS Feeds on Operating Systems, Programming, Web Development, Applications, Databases, Networking, Hardware, Security, SEO Free Expertsforge Membership
Join us as Moderator
Submit Article to Expertsforge.com Submit Article My Expertsforge
 
RSS Feeds, Help Help RSS Feeds
bannertop
 

ASP Tutorial: Taking Database backup using ASP

jawahar
5/27/2005 6:05:37 AM, Views: 1989
The following code can be used to take backup of your database
available in the server. This is to prevent dataloss due to server
crash, etc.,


<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")

If (fs.FileExists(Server.MapPath("temp.mdb"))=true) Then
    '            which file to be copied         , give a backup name   
    fs.CopyFile Server.MapPath("temp.mdb"),Server.MapPath("temp1.mdb")
Else
    Response.Write("File does not exist")
End If

set fs=nothing
%>
Next Steps:
Add this Tutorial to:
Blink Blink del.icio.ous Del.icio.us Digg Digg
Fark Fark Furl Furl Google Google
Reddit Reddit Simpy Simpy Spurl Spurl
Technorati Technorati Windows Live Win Live Yahoo Yahoo
Rate Me!
Avg Visitor Rating: Average Visitor Rating is 4 out of 5
Number of Ratings : 3 Votes
Rate:
Send Private MessageSend Message
Signup / Login To View the Solution or Provide Comments
Post Comment/Solution
Comment:*
        (Link Rules) 
  Use : [bold] for <b>; [/bold] for </b>; [italic] for <i>; [/italic] for </i>; [code] & [/code] for code
 
Categories
Options
ASP RSS Feed
Most Popular Tutorial
Most Popular Solution
Top Rated
Top Rankers
Overall
1. jawahar (3000)
Yearly -2008
1. jawahar (200)
Expertsforge Sponsors
bnrtop