Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
unsigned int db_stop_database( SQLCA * sqlca, char * parms );
sqlca 指向 SQLCA 结构的指针。
parms 以空值终止的字符串,其中包含以分号分隔的参数设置列表,每个参数设置的形式均为 [关键字=值]。例如:
"UID=DBA;PWD=sql;DBF=c:\\db\\mydatabase.db"
成功返回非零值;否则返回 0。
在由 ServerName (Server) 标识的服务器上停止由 DatabaseName (DBN) 标识的数据库。如果未指定 ServerName,则使用缺省服务器。
缺省情况下,此函数不停止存在现有连接的数据库。如果 Unconditional (UNC) 设置为 yes,则不管是否存在现有连接都会停止数据库。
返回值 TRUE 指示没有错误。
启动和停止数据库所需的权限可在服务器命令行上使用 -gd 选项进行设置。