同意楼上.现在建议用ADO连接,这样,只需要设置连接字符串就行了.

解决方案 »

  1.   

    ADO数据库连接字符串模板 ---------------------------------------SQL数据库:
    Provider=SQLOLEDB.1;Persist Security Info=True;User ID=用户名;Password=密码;Initial Catalog=数据库名;Data Source=SQL服务器名
      

  2.   

    you can see:
    http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=24805
    http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=39173
      

  3.   

    dao 
    必须用 odbc 连 SQL!http://www.microsoft.com/china/technet/sql/technote/dat406ef.asp