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

@@ -121,6 +121,7 @@ namespace Volian.Controls.Library
if (server.StartsWith(@".\")) server = @"Local \ " + server.Substring(2);
string databaseName = Database.SelectedDatabase;
sb.Append(string.Format("SQL Server: {0}", server));
if (databaseName == null) databaseName = Regex.Replace(connectionString, "^.*Initial Catalog=([^;]*);.*$", "$1", RegexOptions.IgnoreCase);
sb.AppendLine(string.Format("\t\tDatabase: {0}", databaseName));
if (OutlookEmail)
sb.AppendLine("sent via outlook");