What is the main difference between Initial Catalog
and Database
Keyword in a connection string?
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)
Update:
New version namespace Microsoft.Data.SqlClient.