连接字符串中初始目录和数据库关键字之间的区别 [英] Difference between Initial Catalog and Database keyword in connection string

查看:12
本文介绍了连接字符串中初始目录和数据库关键字之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Initial CatalogDatabase连接字符串中的关键字的主要区别是什么?

What is the main difference between Initial Catalog and Database Keyword in a connection string?

推荐答案

唯一的区别是名称.

这些可以互换使用.

请参阅 SqlConnectionStringBuilder.InitialCatalog,在备注下:

See the documentation of SqlConnectionStringBuilder.InitialCatalog, under remarks:

此属性对应于连接字符串中的 "Initial Catalog""database" 键.

This property corresponds to the "Initial Catalog" and "database" keys within the connection string.

(强调我的)

这篇关于连接字符串中初始目录和数据库关键字之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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