我正在尝试使用以下连接字符串将 IIS6 上的 .NET Framework 4.0 WCF REST 服务连接到 SQL Server 2008 R2 数据库:
<add name="EReportEntities"
connectionString="metadata=res://*/EReportModel.csdl|res://*/EReportModel.ssdl|res://*/EReportModel.msl;provider=System.Data.SqlClient;provider connection string="Server=localhost;Database=ADM;User Id=sa;Password=XXXXXXXX;multipleactiveresultsets=True;App=EntityFramework""
providerName="System.Data.EntityClient" />
但我不能。我得到:
Event Type: Failure Audit
Event Source: MSSQLSERVER
Event Category: (4)
Event ID: 18456
Date: 10/19/2012
Time: 10:47:48 AM
User: N/A
Computer: UNILEVER
Description:
Login failed for user 'sa'. [CLIENT: <local machine>]
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 18 48 00 00 0e 00 00 00 .H......
0008: 09 00 00 00 55 00 4e 00 ....U.N.
0010: 49 00 4c 00 45 00 56 00 I.L.E.V.
0018: 45 00 52 00 00 00 07 00 E.R.....
0020: 00 00 6d 00 61 00 73 00 ..m.a.s.
0028: 74 00 65 00 72 00 00 00 t.e.r...
但是,如果我使用 sa 用户登录 SQL Server Management Studio,我可以登录。
我究竟做错了什么?