Protected Member Functions | |
initTables () | |
initSequences () |
Definition at line 31 of file MSSQLDatabaseInfo.php.
MSSQLDatabaseInfo::initSequences | ( | ) | [protected] |
SQLException |
Reimplemented from DatabaseInfo.
Definition at line 64 of file MSSQLDatabaseInfo.php.
MSSQLDatabaseInfo::initTables | ( | ) | [protected] |
SQLException |
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 }