Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SAConnection 类

 

Database 属性

获取当前数据库的名称。

语法
Visual Basic

Public Overrides Readonly Property Database As String
C#

public override string  Database { get;}
注释

如果打开了连接,则 SAConnection 返回当前数据库的名称。否则,SAConnection 将按以下顺序在连接字符串中查找:DatabaseName、DBN、DataSourceName、DataSource、DSN、DatabaseFile、DBF。

另请参见