哇...好难回答哟...你要一些什么SQL语句?引用Microsoft ActiveX Data Object 2.x
Dim Cn As New Adodb.Connection
Dim Rs As Adodb.RecordsetCn.Open "Driver={SQL Server};Server=youServer;Uid=sa;pwd=;DataBase=Test"
Rs.Open "Select * From Test",Cn..如果你想学SQL的话,看看SQL Server的帮助吧!

解决方案 »

  1.   

    在你硬盘搜索Ado210.chm和Jetsql35.hlp看看
    Select 美女 From CSDN Where 婚否 ='否'"
      

  2.   

    dim strSQL as string
    dim cn as new adodb.connectionstrsql="....."
    cn.open strsql
      

  3.   

    我现在有一个ACCESS的数据库,我要对其中一个表,执行类似与SELECT * FORM TABLE1 这样很简单的SQL语言,将结果显示在一个表格中,具体的操作大概是个什么样子呢?
      

  4.   

    在connection和recordset中都可以直接写SQL语句(注意SQL语法必须是你要使用的DBMS的SQL语法,如访问SQLSERVER要用T_SQL):
    如:
    connection.exec "sql语句"
    recordset.open "sql语句"
      

  5.   

    应该是
    dim a$
     a = "否"
    "Select 分数 From [CSDN] Where [解答] =" & chr(34) & a & chr(34)
      

  6.   

    dim cn as adodb.connection
    dim strSql as string 
    set cn=new adodb.connection
    strSql="select * from Tb1"
    cn.open strSql
    cn.close
    set cn=nothing
      

  7.   

    dim cn as adodb.connection
    dim strSql as string 
    set cn=new adodb.connection
    strSql="select * from Tb1"
    cn.Execute strSql
    cn.close
    set cn=nothing
      

  8.   

    使用以上代码需要在工程--引用里面找到ADO,而不是找美女啊。