是不是以前连接的数据库出问题了阿?比如说连接别人的机器上的sql server?

解决方案 »

  1.   

    你是不是重装了系统,没有权限了?你在企业管理器中重新注册一下SQL Server注册
      

  2.   

    用户NULL登陆失败,检查一下你的登录用户名
      

  3.   

    below from MSDNSymptoms
    When you attempt to extend a web site based on SharePoint Team Services from Microsoft,the following error message appears: Logon failed for user 'Administrator'. Reason: Not associated with a trusted SQL Server connection (Error code: 18452). 
    The SharePoint team Web site is not extended, even though you are using the Administrator's account and the correct password. Cause
    This error message can occur if the SQL Server is using Windows only authentication. SharePoint Team Services requires SQL Server authentication and uses a system account to log on to the SQL Server. Resolution
    To correct this problem, change the SQL Server authentication method to use both SQL Server and Windows. To do this, follow these steps: Start the SQL Server Enterprise Manager. 
    Right-click the name of the server running SharePoint Team Services, and then click Properties on the shortcut menu. 
    Click the Security tab. 
    In the Authentication section, click SQL Server and Windows. 
    Under the Startup service, select System. 
    Click OK. 
    If you are prompted to stop and restart the SQL server, click Yes. 
    Extend the SharePoint team Web site by using the 'sa' account.
      

  4.   

    企业管理器-->右键SQlserver组-->新建sqlserver注册-->下一步-->写入实例名(IP,机器名)-->下一步-->选Sqlserver登陆-->下一步-->写入登陆名与密码(sa,pass)-->下一步-->下一步-->完成
      

  5.   

    看看你的验证方式对么通过企业管理器,在数据库右键“属性”,“安全性”的选项卡里选择“Windows和SQL-SERVER”或“仅Windows”再点“确定”就改好了
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\LoginMode REG_DWORD, 11---Windows认证模式
    2---SQL和Windows认证模式