在连接字符串中,Initial Catalog和 Database关键字的主要区别是什么?
Initial Catalog
Database
The only difference is the name.
These can be used interchangeably.
See the documentation of SqlConnectionStringBuilder.InitialCatalog, under remarks:
SqlConnectionStringBuilder.InitialCatalog
This property corresponds to the "Initial Catalog" and "database" keys within the connection string.
(emphasis mine)