如何通过Windows帐户创建实体模型连接? [英] How can I create entity model connection by windows account?

查看:82
本文介绍了如何通过Windows帐户创建实体模型连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Windows帐户ABC,可以访问连接到sqldatabase。



我的帐户是xyz,我用它来工作在visual studio上。< br $> b $ b

我的问题是..



如何使用ABCWindows帐户创建实体模型当前解决方案在xyz上运行。



我尝试过的方法:



i可以通过sql身份验证创建连接并传递用户名和密码,但在使用Windows帐户时无法传递用户名和密码。

I have windows account "ABC" which has access to connect to sqldatabase.

my account is "xyz" which i use to work on visual studio.

my question is..

How can i create a entity model using "ABC" windows account on current solution which is running on "xyz".

What I have tried:

i can create connection by sql authentication and pass them the username and password, but cannot pass user name and password when using windows account.

推荐答案

这个问题是关于MS SQL Server身份验证。

有两种身份验证方式:

- Windows身份验证

- SQL Server身份验证

$ / b
描述

选择身份验证模式| Microsoft Docs [ ^ ]



使用'xyz'帐户使用数据库的唯一方法

是问您的数据库管理员授予'xyz'帐户的权限。
This question is about MS SQL Server authentication.
There are two ways of authentication:
- Windows Authentication
- SQL Server Authentication

as described in
Choose an Authentication Mode | Microsoft Docs[^]

The only way to use your database using the 'xyz' account
is to ask your database administrator to grant rights for the 'xyz' account.


这篇关于如何通过Windows帐户创建实体模型连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆