如题谢谢!

解决方案 »

  1.   

    select [name] from msysobjects where [name]=你要查找的表
      

  2.   

    '*********************************************************
    '* 名称:TableExists
    '* 功能:判断表是否存在(表名)
    '* 用法:TableExists(表名) adoCN是一个SQL的连接
    '*********************************************************
    Public Function TableExists(findTable As String) As Boolean
        Dim rstSchema As New ADODB.Recordset
        Set rstSchema = adoCN.OpenSchema(adSchemaTables)
        rstSchema.Find "TABLE_NAME='" & findTable & "'"
        If rstSchema.EOF Then
          TableExists = False
        Else
          TableExists = True
        End If
        rstSchema.Close
    End Function
      

  3.   

    select [name] from msysobjects where [name]=你要查找的表