正確的寫法:cn.Open "Provider=SQLOLEDB;Dsn=good;uid=itoulee;pwd=1111;"

解决方案 »

  1.   

    Provider=MSDASQL.1;Password=1111;Persist Security Info=True;User ID=itoulee;Data Source=good
      

  2.   

    cn.open "Provider=SQLOLEDB.1;Password=密码;Persist Security Info=True;User ID=用户名;Initial Catalog=数据库;Data Source=SQL服务器名"
      

  3.   

    cn.open "dsn=goods","itoulee","1111"
      

  4.   

    你用ADO控件生成一个,Copy出来就行了。
      

  5.   

    简单方法
    加入adobc控件然后在connectionString属性处选择
    use connectionString选项的build
    连到自己的数据源
    然后的到的string直接考到你要用的地方就行了