6 |
using System.Windows.Forms; |
using System.Windows.Forms; |
7 |
using System.Text.RegularExpressions; |
using System.Text.RegularExpressions; |
8 |
using System.Management; |
using System.Management; |
9 |
|
using log4net; |
10 |
|
|
11 |
namespace AnywhereTS |
namespace AnywhereTS |
12 |
{ |
{ |
13 |
class DatabaseSupport |
class DatabaseSupport |
14 |
{ |
{ |
15 |
|
private readonly ILog logger = LogManager.GetLogger("AnywhereTS.ATSAmdinLogger"); |
16 |
enum VersionCheck |
enum VersionCheck |
17 |
{ |
{ |
18 |
Failed = 0, |
Failed = 0, |
49 |
{ |
{ |
50 |
bool bContinue = false; |
bool bContinue = false; |
51 |
// Create a connection to SQL Server |
// Create a connection to SQL Server |
52 |
|
logger.Debug("SetupDatabase() called "); |
53 |
try |
try |
54 |
{ |
{ |
55 |
sqlCon.ConnectionString = Properties.Settings.Default.atsConnectionString; |
sqlCon.ConnectionString = Properties.Settings.Default.atsConnectionString; |