我在网上下了几个网上书店的程序,都运行不了。
原因老是myConn.Open();这个语句tishi
提示的是An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.
请各位帮忙啊
说的详细些 我是新手

解决方案 »

  1.   

    ConnectString = "provider=sqloledb.1;data source=gold-mis06\sunrise;uid=sa;pwd=*****1004;database=db_Su"这样代码应该不陌生吧
    不同语言可能有所差异
    你修改了服务器名,用户名,密码了吗
      

  2.   

    under the default settings SQL Server does not allow remote connections.
    ---
    2005 设置
      

  3.   

    server=IP;user id=sa;password=sa;database=databasename;min pool size=4;