如果连接字符串没有错的话。记得打开SQL Server里面的log in mode. SQL Server有两种连接模式: windows anthentation和mixed mode 检查一下你的数据库属性 在security里有log in mode.具体操作就是右点键数据库--属性---安全
你的连接字符串错了。