SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 15th, 2004, 05:32 PM
mattrogers mattrogers is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 mattrogers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to mattrogers
Using SQL to obtain Access database structure

All,

I'm trying to write (or find) a script that enables me to manage Access databases from the web. The main problem I have is that the normal SQL instructions to manage a database (like DESCRIBE, CREATE, etc) don't seem to work for Access databases.

Does anyone know whether there is a way around this?

Cheers,

Matt.

Reply With Quote
  #2  
Old January 15th, 2004, 06:35 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,781 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 45 m 55 sec
Reputation Power: 470
What exactly are you wanting to do?? view the table structures?? alter the table structures???

Reply With Quote
  #3  
Old January 16th, 2004, 04:41 AM
mattrogers mattrogers is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 mattrogers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to mattrogers
Initially just read the table structure, but as I develop the script I'd like to be able to control any element of the database from the script. Any ideas?

Reply With Quote
  #4  
Old January 16th, 2004, 09:29 AM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,781 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 45 m 55 sec
Reputation Power: 470
To get a list of table names:
Code:
SELECT Name FROM MSysObjects WHERE Type = 1;



To get list of query names:
Code:
SELECT Name FROM MSysObjects WHERE Type = 5;



additional information:

Code:
To get list of Forms:
SELECT Name FROM MsysObjects WHERE Type =-32768; 

To get list of Reports:
SELECT Name FROM MsysObjects WHERE Type = -32764;

To get list of Modules:
SELECT Name FROM MsysObjects WHERE Type = -32761;

To get list of Macros:
SELECT Name FROM MsysObjects WHERE Type = -32766;



hope this helps.
BTW, what kind of application is this going to be?? VB, .NET, ASP???

Reply With Quote
  #5  
Old January 16th, 2004, 11:27 AM
mattrogers mattrogers is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 mattrogers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to mattrogers
That's perfect for the timebeing - thanks!

Basically I want to be able to get raw access to my database from the web whilst I at work. Currently I have to download, view and then upload any changes. So I want a script with which I can manage all my databases simply and effectively.

I'm happy to post the script when its complete as it should be quite useful for all the cheapskates like me who use Access databases rather than SQL Server!

Cheers,

Matt.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Using SQL to obtain Access database structure


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT