Home | Advertising Info77 USERS CURRENTLY ONLINE   
   Site Search Contact Us Friday, March 14, 2025  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 



We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: Re: Copying and Creating Tables
From: Harlan
Date: 3/8/1999 9:14:08 AM
IP: 206.222.20.2



 

I'm pretty sure you can't copy and rename a table in any database, ok I'm almost positively sure. Here is what you need to do instead, I believe. You can use the "create table" sql statement to create a general datatype and structure for your table, and call it as a sub to create a standard table. Here would be an example.

Sub CreateTemplateTable(tblName)
dim sqlCreate 'as string; sql query string
sqlCreate = "create " & tblName & " & _
" ( cmnOne varchar2 constrant pk_One " & _
"primary key, cmnTwo number)"
DBOpen 'a standard sub of mine used in an
'an include, you can just create and .open an 'adodb.connection
DB.Execute(sqlCreate)
DBClose 'same as DBOpen
End Sub

Note: this create table syntax is oracle 7 syntax, not access syntax, I don't really work much with access so I don't know its syntax off hand.

but anyway, you can easy do something like this.

Call CreateTemplateTable("myTable")
Call CreateTemplateTable("HisTable")
Call CreateTemplateTable("yourTable")

your database would now hold

Previous Message


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2025 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com