Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old August 6th, 2005, 09:55 PM
Registered User
Points: 1,897, Level: 17
Points: 1,897, Level: 17 Points: 1,897, Level: 17 Points: 1,897, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default Backup and restore in ASP.

Hi All,

I am using Access as a backend.

Can anyone let me know how i could achieve backup and restore?

I have never develp backup-restore module, better let me know what exactly it is?

Thanks in advance.:)

Rupen Anjaria.
We CAN'T avoid problems, but can solve it.
  #2 (permalink)  
Old August 7th, 2005, 08:04 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Do you want to build this yourself, or do you just need the functionality?

If the latter is true, take a look at DBAdmin: http://www.stpworks.com/DesktopDefau...=3&articleid=3

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: So Flute by St Germain (Track 3 from the album: Tourist) What's This?
  #3 (permalink)  
Old August 8th, 2005, 05:25 AM
Registered User
Points: 1,897, Level: 17
Points: 1,897, Level: 17 Points: 1,897, Level: 17 Points: 1,897, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

I am going to build this myself.

Rupen Anjaria.
We CAN'T avoid problems, but can solve it.
  #4 (permalink)  
Old August 8th, 2005, 02:35 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you take a look at DBAdmin?

Being plain ASP, I think you can just take a look at the source and see how it's done....


Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
  #5 (permalink)  
Old August 12th, 2005, 04:09 AM
Registered User
Points: 1,897, Level: 17
Points: 1,897, Level: 17 Points: 1,897, Level: 17 Points: 1,897, Level: 17
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2005
Location: Mumbai, Maharastra, India.
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rupen
Default

DBAdmin is highly advance, and my requirement is something difft then what it got,
My client will take backup at every month, now while taking backup necessary data has to be retain in new file, like empdetails, teamdetails etc,.

So, what i think is to when client needs to have backup, i will copy original file data into new file, and delete unnecessary data. Hence, i can clear the .MDB file.
Pls suggest if this is good solution?



Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
  #6 (permalink)  
Old August 12th, 2005, 03:36 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

If you need something simple, I think you can do something like this:

1. Create a copy of your database and save it as template.mdb

2. When you want to export, create a copy of this template so you end up with another empty database.

3. In an ASP page, create a connection to the original database and to the template based empty copy

4. Select all the data from a table in the source database and use it to insert it into the target (template) database.

5. Repeat this process for each table in your database.

It's not very sophisticated, but it'll do the trick....


Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to restore a local backup? mugwomp SQL Server 2005 2 September 6th, 2007 02:31 PM
Need Help - BackUp and Restore sivap SQL Server 2005 5 July 13th, 2007 08:51 PM
Backup restore error Prabhakar_dt Classic ASP Basics 1 July 21st, 2005 07:20 PM
Backup and Restore acko SQL Server 2000 0 July 1st, 2004 03:18 AM
How to backup and restore Database phubinh Pro VB Databases 1 June 4th, 2004 03:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.