Just a question for the SQL users out there. Is it possible to find the count of how many tables are in a database?
If I can get this question answered, then my Software Design assignment will be finished! =D
Aaaaaaaaaa-[url="http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html"]choo![/url]
Yes, it's possible. It depends (however) on the database you're using.
Most databases (AFAIK all, but I'm sure there's an exception somewhere) use meta-tables to hold information about their tables and columns.
In oracle, it's SYS.ALL_TABLES (or it's kin SYS.USER_TABLES / SYS.DBA_ALL_TABLES - refer to Oracle Table Reference for more versions)
In SQLServer, it's DBO.SYSOBJECTS
There is *no* standard for this though, so every database is different.
However, though ODBC,JDBC,DAO etc there are calls in the API to enumerate the tables. Each driver implements this in a DB-specific fashion to hide the underlying implementation.
Without wanting to sound facetious though, asking an "is it possible" question in a software engineering assignment is just asking for trouble. ie: Is it possible to access the "hot coffee" scenes in GTA:SA? Easy, intended or supported, no. Possible, well obviously.