Wrox Programmer Forums
|
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
 
Old March 14th, 2006, 06:22 AM
sarunb4u
Guest
 
Posts: n/a
Default

hi Imar,
    i've seen your code regarding "to create a table in a database using asp".
my requirement is to duplicate an already existing mdb(access database) file along with its structure and data
If this is possible... how is it done?
Thanks for any help :)


 
Old March 14th, 2006, 06:35 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi sarunb4u,

The easiest way is probably to use the FileSystemObject to create a physical copy of the file...

http://www.aspfaq.com/show.asp?id=2039#copy

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 15th, 2006, 07:24 AM
sarunb4u
Guest
 
Posts: n/a
Default

hi
  thanks Imar for ur help. my new requirement is to create a copy of the table(along with its structure and data) within the same mdb file, its similar to save as... help me with this

Thanks again
arun


 
Old March 15th, 2006, 03:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Arun,

You can do that with code similar to what I have posted here, or similar to this article on my web site: http://imar.spaanjaars.com/QuickDocId.aspx?QUICKDOC=143

Basically, you skip the step that creates the database and just add a new table to an existing database. Just create the schema. You can do that by looking at the information of the existing table, similar to how you create a new table.

Once you've created the table, you can use a SQL SELECT statement to copy the data from the old table to the new one.

HtH,

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
database paging using asp table+ oledbdataadapter yamensaleh ASP.NET 2.0 Basics 0 January 27th, 2007 10:09 AM
List Database table through ASP abhisheksud Classic ASP Databases 0 September 5th, 2005 05:10 AM
Creating Pop-up Window from ASP.Net Table Cell sueolo Classic ASP Basics 0 September 1st, 2005 01:54 PM
ASP 0177 error creating database [email protected] Classic ASP Databases 6 March 3rd, 2005 01:43 PM
Creating table with existing table without value kumar_kumar Oracle 1 January 4th, 2005 07:12 AM





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