本帖最后由 xxyear 于 2011-02-26 08:05:53 编辑

解决方案 »

  1.   

    <add name="snsconstr" connectionString="server=PC-20100622UMUK;uid=sa;pwd=4502842;database=tzhuangxiu;Pooling=true;" providerName="GenericDatabase"/>服务器是PC-20100622UMUK 
    用户名是sa 
    密码是4502842 
    数据库是zhuangxiu 
    數據庫貌似不一樣?
      

  2.   

    <add name="snsconstr" connectionString="Data Source=PC-20100622UMUK;Initial Catalog=PC-20100622UMUK;Persist Security Info=True;User ID=sa;Password=4502842" providerName="System.Data.SqlClient"/>
      

  3.   

    这个是正确的上面的库错了
    <add name="snsconstr" connectionString="Data Source=PC-20100622UMUK;Initial Catalog=zhuangxiu;Persist Security Info=True;User ID=sa;Password=4502842" providerName="System.Data.SqlClient"/>