“服务器"与“数据源"在连接字符串中

编程入门 行业动态 更新时间:2024-10-23 12:25:42
本文介绍了“服务器"与“数据源"在连接字符串中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是SqlServer的新手,现在我已安装SqlLocalDb以便在本地工作.很好,但是我通常可以看到两个连接字符串,并且都可以正常工作:

I'm new to SqlServer, right now I have SqlLocalDb installed to work locally. Good, but I can see two connection strings typically and both works:

Data Source=(localdb)\v11.0;Integrated Security=true;

Server=(localdb)\v11.0;Integrated Security=true;

两者之间有什么确切的区别?

What exact difference is there between the two?

推荐答案

有关所有连接字符串关键字的完整列表,包括完全同义的关键字,请参考 SqlConnection.ConnectionString文档:

For the full list of all of the connection string keywords, including those that are entirely synonymous, please refer to the SqlConnection.ConnectionString documentation:

这些都是完全等同的:

  • 数据源
  • 服务器
  • 地址
  • 地址
  • 网络地址
    • Data Source
    • Server
    • Address
    • Addr
    • Network Address

更多推荐

“服务器"与“数据源"在连接字符串中

本文发布于:2023-10-30 22:47:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1544222.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据源   字符串   服务器   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!