Difference between Initial Catalog and Database keyword in connection string

ado.net

ado.net Problem Overview


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

ado.net Solutions


Solution 1 - ado.net

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)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionraviView Question on Stackoverflow
Solution 1 - ado.netOdedView Answer on Stackoverflow