check your user ,   and check DB

解决方案 »

  1.   

    将密码保存至connection中。
    或者在sqlConnection的ConnectionString中手工改动一下
      

  2.   

    没有把连接数据库的用户名和密码写清楚。
    比如:
    private string ConnStr = "data source=d1dxw91x\\NETSDK;initial catalog=UrumqiEPBWebSit;persist security info=False;user id=pony;password=starofspace;workstation id=PONY;packet size=4096";
      

  3.   

    给你几个连接字符串
    本地连接SQL SERVER:
    "server=(local);Initial Catalog=NorthWind;User ID=sa;Pwd=123"
    数据库服务器名称     初始化数据库名称      数据库用户名及其密码
      

  4.   

    连接字符串:
    "server=(local);Initial Catalog=NorthWind;User ID=sa;Pwd=123"
    数据库服务器名称     初始化数据库名称      数据库用户名及其密码
    察看数据库的设置,采用windows混合验证方式
      

  5.   

    server=(local);Initial Catalog=NorthWind;User ID=sa;Pwd=123456
      

  6.   

    server=(local);Initial Catalog=NorthWind;User ID=sa;Pwd=sa"
                                             ~~~~~~~~~~~~~~~~~~~
    缺少它
      

  7.   

    SQL Server连接失败错误及解决http://www.yesky.com/SoftChannel/72342371928965120/20030304/1655060_2.shtml