If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > ASP - Creating new table in existing db

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-02-06, 02:04
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
ASP - Creating new table in existing db

Hi all...

I have a question... i have been searching answer for this for quite a l0ng time...

I'm using asp and microsoft access..

I have a database name, "db1.mdb"

I want to create a new table inside this database after submittin a name in my form..

But how do i write my sql statement to execute this?

Thanx
Reply With Quote
  #2 (permalink)  
Old 03-02-06, 03:53
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
sql

As I understand you need the "create table" statement.
Look at http://www.w3schools.com/sql/sql_create.asp
for more
dimis
Reply With Quote
  #3 (permalink)  
Old 03-02-06, 05:07
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
okay, thanx!
Reply With Quote
  #4 (permalink)  
Old 03-02-06, 20:04
Cuttie0506 Cuttie0506 is offline
Registered User
 
Join Date: Jan 2006
Posts: 44
ya, wanna ask u something.. can we change the name of the table using sql statement? i know we can change the name of column..
Reply With Quote
  #5 (permalink)  
Old 03-06-06, 19:53
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
I'd suggest checking around the link you have ( http://www.w3schools.com/sql ).

Otherwise not sure if perhaps could do this using ADOX:

How do I create a database from ASP?
http://www.aspfaq.com/show.asp?id=2029

ADOX API Reference
http://msdn.microsoft.com/library/de...ireference.asp
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On