如何解决天青" Windows登录未在此版本的SQL Server&QUOT的支持;? [英] How to resolve Azure "Windows logins are not supported in this version of SQL Server"?
问题描述
我收到以下错误消息,当我尝试连接到SQL Azure上。
I get the following error message, when I try to connect to SQL Azure.
Windows登录未在此版本的SQL Server支持
Windows logins are not supported in this version of SQL Server
我使用Azure的连接字符串。在开发我正在对SQL Server防爆preSS。当我尝试从数据库中获取一些数据,此特定错误被抛出。
I'm using an Azure connection string. On development I'm running against SQL Server Express. This specific error is thrown when I try to fetch some data from the database.
这是我使用的使用条款中运行的环境,见下文
The context that I'm using is running in a using clause, see below
function List<SomeType> GetList(string dbContextName)
{
using (MyDbContext context = new MyDbContext)
{
return context.SomeTypes.ToList();
}
}
我们正在使用实体框架4.2版,ASP.NET MVC 3和.NET 4.0。
We're using Entity Framework version 4.2, ASP.NET MVC 3 and .NET 4.0.
我怎样才能解决这个问题?
How can I resolve this issue?
推荐答案
我使用的用户/密码,仍然得到了错误的信息。但是,我已将此添加到我的连接字符串和它的工作。
I was using user/pass and still got the error message. But, I added this to my connection string and it worked.
Trusted_Connection=False;Encrypt=True;
这篇关于如何解决天青&QUOT; Windows登录未在此版本的SQL Server&QUOT的支持;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!