Fixed code that reports the active database in use.

Changed debug output for Forced Pagination Items.
Fixed Pagination Logic for Background Documents.
This commit is contained in:
Rich
2014-03-07 00:35:23 +00:00
parent 0a4ed797b8
commit c77e0d2d2f
3 changed files with 12 additions and 2 deletions

View File

@@ -40,6 +40,7 @@ namespace VEPROMS
this.labelCompanyName.Links[0].LinkData = "Volian Enterprises Inc.";
this.labelCompanyName.Links.Add(0,23,"www.volian.com");
this.labelServer.Text = string.Format("SQL Server: {0}", server);
if (databaseName == null) databaseName = Regex.Replace(connectionString, "^.*Initial Catalog=([^;]*);.*$", "$1", RegexOptions.IgnoreCase);
this.labelDatabase.Text = string.Format("Database: {0}", databaseName);
}