|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
What exactly are you wanting to do?? view the table structures?? alter the table structures???
|
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
||||
|
||||
|
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??? |
|
#5
|
|||
|
|||
|
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. |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Using SQL to obtain Access database structure |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|