MSSQLDatabaseInfo Class Reference

Inheritance diagram for MSSQLDatabaseInfo:

DatabaseInfo

List of all members.

Protected Member Functions

 initTables ()
 initSequences ()


Detailed Description

Definition at line 31 of file MSSQLDatabaseInfo.php.


Member Function Documentation

MSSQLDatabaseInfo::initSequences (  )  [protected]

Returns:
void
Exceptions:
SQLException 

Reimplemented from DatabaseInfo.

Definition at line 64 of file MSSQLDatabaseInfo.php.

00065     {
00066         // there are no sequences -- afaik -- in MSSQL.
00067     }

MSSQLDatabaseInfo::initTables (  )  [protected]

Exceptions:
SQLException 
Returns:
void

Reimplemented from DatabaseInfo.

Definition at line 37 of file MSSQLDatabaseInfo.php.

References $result.

00038     {
00039         include_once 'creole/drivers/mssql/metadata/MSSQLTableInfo.php';
00040         
00041         $dsn = $this->conn->getDSN();
00042         
00043         
00044         if (!@mssql_select_db($this->dbname, $this->conn->getResource())) {
00045             throw new SQLException('No database selected');
00046         }
00047              
00048         $result = mssql_query("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME <> 'dtproperties'", $this->conn->getResource());
00049     
00050         if (!$result) {
00051             throw new SQLException("Could not list tables", mssql_get_last_message());            
00052         }
00053         
00054         while ($row = mssql_fetch_row($result)) {
00055             $this->tables[strtoupper($row[0])] = new MSSQLTableInfo($this, $row[0]);            
00056         }
00057     }            


The documentation for this class was generated from the following file:

Generated on Wed May 6 23:10:50 2009 for fareofficelib by  doxygen 1.5.8