初始目录和数据库关键字在连接字符串中的区别

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

26833 次浏览

The only difference is the name.

These can be used interchangeably.

See the documentation of SqlConnectionStringBuilder.InitialCatalog, under remarks:

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

(emphasis mine)