12 #ifndef ROOT_TSapDBServer
13 #define ROOT_TSapDBServer
15 #ifndef ROOT_TSQLServer
41 TSapDBServer(
const char *db,
const char *uid,
const char *pw);
TSQLResult * GetColumns(const char *dbname, const char *table, const char *wild=0)
List all columns in specified table in the specified database.
TSQLResult * GetDataBases(const char *wild=0)
List all available databases.
const char * ServerInfo()
Return server info.
#define ClassDef(name, id)
Int_t Reload()
Reload permission tables.
TSapDBServer(const char *db, const char *uid, const char *pw)
Int_t SelectDataBase(const char *dbname)
Select a database.
void Close(Option_t *opt="")
Close connection to SapDB DB server.
Int_t CreateDataBase(const char *dbname)
Create a database.
Int_t DropDataBase(const char *dbname)
Drop (i.e.
TSQLResult * GetTables(const char *dbname, const char *wild=0)
List all tables in the specified database.
TSQLResult * Query(const char *sql)
Execute SQL command.
Int_t Shutdown()
Shutdown the database server.
~TSapDBServer()
Close connection to SapDB DB server.
static Int_t printSQLError(SQLHDBC hdbc, SQLHSTMT hstmt)
Print SapDB error message.