using System;
//using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Net;
using System.Web;
using System.IO;
using System.Text.RegularExpressions;
using System.Net.Sockets;
using System.Configuration;
using System.Collections;
using System.Collections.Specialized;
using System.Threading;
using System.Data.OleDb;
using SystemFramework;
//using SystemFramework;
namespace DataLinkMesWork
{
public partial class DataAccess
{
///
/// 测试与数据的连接线程
///
static Thread threadTestConnection;
///
/// 测试与数据的连接
///
///
public static void TestConnection()
{
try
{
if (threadTestConnection == null)
{
threadTestConnection = new Thread(new ThreadStart(SQLCommon.TestConnection));
threadTestConnection.Start();
}
else
{
threadTestConnection.Abort();
threadTestConnection = null;
threadTestConnection = new Thread(new ThreadStart(SQLCommon.TestConnection));
threadTestConnection.Start();
}
}
catch (Exception err)
{
ApplicationLog.WriteLog(err, err.Source);
}
}
///
/// 测试与数据的连接
///
///
public static void TestConnectionFirst()
{
SQLCommon.TestConnection();
}
}
}