简体   繁体   English

无法读取数据库架构

[英]Failed to read database schema

im newbie in c# and i want fetch data from mssql local engine with peta poco orm but i get this error image of error im getting and here is my connection string of my class library:我是 c# 的新手,我想用 peta poco orm 从 mssql 本地引擎获取数据,但我得到了这个错误图像,这是我的 ZA2F2ED4F8EBC2CBB4C21A29DC40AB61Z 库的连接字符串:

  <connectionStrings>
 <add name="School" connectionString="Data Source= MSSQLSERVER;Initial Catalog=School;user id=sa; Password=1qaz!QAZ;" providerName="System.Data.SqlClient" />
 </connectionStrings>

my database name is School, i tried server too, and my server name which i use to connect to ssms is DESKTOP-KVEJKDS thanks for your help!我的数据库名称是 School,我也尝试过服务器,我用来连接 ssms 的服务器名称是 DESKTOP-KVEJKDS 感谢您的帮助!

Just replace your Data Source name with your Server name:只需将您的数据源名称替换为您的服务器名称:

<connectionStrings>
 <add name="School" connectionString="Data Source= DESKTOP-KVEJKDS\SQLEXPRESS;Initial 
Catalog=School;user id=sa; Password=1qaz!QAZ;" providerName="System.Data.SqlClient" />
 </connectionStrings>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM