Getting Started > Configuring the Milan Server > Connection Strings

Connection Strings

Milan connects to WorkSite, Milan, and billing databases through the use of connection strings. A typical connection string, like the one below, specifies a database server and connection method.

Data Source=SQLServer;User Id=sa;Password=password;Initial Catalog=milan;Integrated Security=false;MultipleActiveResultSets=True

As can be seen in the above example, when using SQL authentication (Integrated Security = false), the user ID and password are passed as clear text and visible to any Milan user with access to the Application Configuration page in Milan. For greater security, you can instead connect to any database with Windows authentication (Integrated Security = true), which uses the credentials of the account running the Milan application pool to authenticate with the SQL server.

Note: Connection strings are stored in encrypted form in the Milan.AppSettings table.

While most connections strings used by Milan can be configured during the initial web-based setup, it is possible to add or edit connection strings at any time through the web client by opening Administration Milan Server Application ConfigurationConnection Strings.

Note: If you will be using Billing To Milan, you must configure the required connection strings on the Connections Strings tab before attempting to run the program. Refer to Configuring Billing To Milan for more information.

Connection String Types

Within Milan, there are two kinds of connection strings: WorkSite connection strings and non-WorkSite connection strings. WorkSite connection strings point to WorkSite libraries, while non-WorkSite connection strings point to all other kinds of databases (e.g., Milan and SQL-based billing systems).

Managing Connection Strings

Both WorkSite and non-WorkSite connection strings can be edited and deleted in the same fashion.