I read different way of writing of connection string in article
Can you please explain me where to use Server and where to use Data Source ? Similarly where to use Database and where to use Initial Catalog. Please explain in detail. I am new in SQL Server.
Those connection string keywords can be used interchangeably. When ADO.Net is parsing the connection string, it will create a
SqlConnectionStringBuilderclass (in case of Sql Server) and map the keywords withing the connection string to theSqlConnectionStringBuilderproperties.For example, “data Source”, “server”, “address”, “addr”, and “network address” all map to the
DataSourceproperty — you can use either one of those to specify the data source. Similarly, “Initial Catalog” and “database” map to theInitialCatalogproperty.Take a look at the SqlConnectionStringBuilder class and its properties on MSDN where you can find more information on their keyword mappings.