Exemple #1
0
 public static bool IsTable(ServerDetails LineDetails, string TableName)
 {
     return(asiDataDefault.getInt64(asiSSMSTrans.QueryFlag(ServerDetails.sConnection(LineDetails), "SELECT COUNT(*) FROM sys.objects WHERE type = 'U' and name = '" + TableName + "'"), 0) == 1);
 }
Exemple #2
0
 public static SqlConnection sConnection(ServerDetails ServerDetails)
 {
     return(new SqlConnection(ResponseSQLString(ServerDetails)));
 }