Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.
Reply With Quote
  #2 (permalink)  
Old August 7th, 2005, 08:04 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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?
Reply With Quote
  #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.
Reply With Quote
  #4 (permalink)  
Old August 8th, 2005, 02:35 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
  #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.
Reply With Quote
  #6 (permalink)  
Old August 12th, 2005, 03:36 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:39 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.