本地ms sql数据库未连接 [英] local ms sql database is not connected

查看:112
本文介绍了本地ms sql数据库未连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Entity framework 6.0版。我想连接本地MS Sql数据库。我使用以下连接字符串。但是数据库没有连接。请给我解决方案。



 <  添加   名称  =  dbecommerceEntities                    connectionString   =  metadata = res://*/Models.dbEcommerceMode .csdl | res://*/Models.dbEcommerceMode.ssdl | res://*/Models.dbEcommerceMode.msl; provider = System.Data.SqlClient; provider connection string =  data     source   =   localhost ;集成 安全性  =  错误;初始 目录  =   dbecommerce;用户  ID   =   qaws;密码= 1q2w!A @ S;连接 超时  =   30000;加密= False ;数据包 大小  =   4096; App = EntityFramework     providerName   =  System.Data.EntityClient      /  >  

解决方案

ConnectionStrings.com - 忘记连接字符串?得到它! [ ^ ]应该帮助你。

I am using Entity framework version 6.0. I want to connect with local MS Sql database. I am using the following connection string. But the database is not connected. please give me the solution.

<add name="dbecommerceEntities"         connectionString="metadata=res://*/Models.dbEcommerceMode.csdl|res://*/Models.dbEcommerceMode.ssdl|res://*/Models.dbEcommerceMode.msl;provider=System.Data.SqlClient;provider connection string="data source=localhost;Integrated Security=False;Initial Catalog=dbecommerce;User ID=qaws;Password=1q2w!A@S;Connect Timeout=30000;Encrypt=False;Packet Size=4096;App=EntityFramework"" providerName="System.Data.EntityClient"  />

解决方案

ConnectionStrings.com - Forgot that connection string? Get it here![^] should help you out.


这篇关于本地ms sql数据库未连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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