public string GetDatabaseName() { IDbConnection cn = SybasePlugin.CreateConnection(context.ConnectionString); string dbName = cn.Database; int index = dbName.LastIndexOfAny(new char[] { '\\' }); if (index >= 0) { dbName = dbName.Substring(index + 1); } return(dbName); }
public string GetFullDatabaseName() { IDbConnection cn = SybasePlugin.CreateConnection(context.ConnectionString); return(cn.Database); }