Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

桌面客户端连接数据库失败。 #1911

Open
zflq2002 opened this issue Nov 2, 2024 · 1 comment
Open

桌面客户端连接数据库失败。 #1911

zflq2002 opened this issue Nov 2, 2024 · 1 comment

Comments

@zflq2002
Copy link

zflq2002 commented Nov 2, 2024

报错信息:Microsoft.Data.SqlClient.SqlException (0x80131904): 登录失败。该登录名来自不受信任的域,不能与集成身份验证一起使用。

数据库接字符串:Data Source=*;User ID=sa;Password=123;Initial Catalog=DDB;Encrypt=True;TrustServerCertificate=True;Integrated Security=false;
在相同环境下,用其它ORM 测试连接正常不报错。

数据库版本

SQL Server 2019

安装的Nuget包

FreeSql.All 3.2.833

.net framework/. net core? 及具体版本

. net core 8

@2881099
Copy link
Collaborator

2881099 commented Nov 2, 2024

new SqlConnection("Data Source=*;User ID=sa;Password=123;Initial Catalog=DDB;Encrypt=True;TrustServerCertificate=True;Integrated Security=false;").Open()

测试这个通过,FreeSql 就没问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants