++++ Connect to MySQL database on web server ++++ 
<!-- Place the following code between <configuration> and </ configuration> in the Web.config file
and state the name of the webserver, the database name, the user name and the password. If we want 
to connect to and use a MySQL database in a ASP.NET application then we need to install MySQL Connector 
Net for ASP.NET on our computer and/or our webserver to get the MySql.Data.dll file. If we have full
control over the web server then it is enough to add a reference to MySql.Data.dll on the web server
in our web project (the reference code will be added automatically to the web.config file). If we
should host our website at a web hosting company then we need to include the MySql.Data.dll file
in the "Bin" folder in our web project.-->

<connectionStrings>
<add name="ConnectionString" connectionString="server=myserver; port=3306;database=mydatabase;uid=myusername;password=mypassword"
providerName="MySql.Data.MySqlClient" />
</connectionStrings>

<!-- If we have the database server on the same computer as the webserver we could use the connection string below instead.-->

<connectionStrings>
	<add name="ConnectionString" connectionString="server=localhost; port=3306;database=ProductsExampleDb;uid=firstdbuser;pwd=qqq" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>

<!-- If you have multiple instances of MySQL server on one computer the easiest way is to set up each instance to use different ports, when you connect 
to a MySQL Server Instance you always include "Port" in the connection string to be able to use the correct MySQL Server Instance. The connection
string to connect to the secondDatabase on the second MySQL Server Instance on Port 3307 is as follows. -->

<connectionStrings>
	<add name="ConnectionString" connectionString="server=database.no-ip.biz; port=3307;database=secondDatabase;uid=firstdbuser;pwd=qqq" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>

++++ Connect to MS SQL database on webserver ++++
<!-- Place the following code between <configuration> and </ configuration> in the Web.config file
and state the name of the web server, the database name, the user name and the password. -->

<connectionStrings>
<add name="ConnectionString" connectionString="server=myserver;database=mydatabase;uid=myusername;password=mypassword" 
providerName="System.Data.SqlClient"/>
</connectionStrings>

<!-- If we want to connect to a named instance other than the default instance of Microsoft SQL Server we can use the connection string
below where the name of the instance is "SQLEXPRESS -->

<connectionStrings>
	<add name="ConnectionString" connectionString="server=database.no-ip.biz\SQLEXPRESS;database=ProductsExamleDb;uid=dbuser;password=qqq" 
	providerName="System.Data.SqlClient"/>
</connectionStrings>

<!-- If we have assigned a static port to a Microsoft SQL Server instance we have to use the connection string below, the static port is 
8120 -->

<connectionStrings>
	<add name="ConnectionString" connectionString="server=database.no-ip.biz\SQLEXPRESS, 8120;database=ProductsExamleDb;uid=dbuser;password=qqq" 
	providerName="System.Data.SqlClient"/>
</connectionStrings>

<!-- If we have the database server on the same computer as the webserver we could use the connection string below instead. -->

<connectionStrings>
	<add name="ConnectionString" connectionString="server=.\SQLEXPRESS;database=ProductsExamleDb;uid=dbuser;password=jkLu8c" 
	providerName="System.Data.SqlClient"/>
</connectionStrings>

<!-- If we have the database server on the same computer as the webserver we could use the connection string below instead if 
we use Windows authentication instead of SQL Server Authentication. -->

<connectionStrings>
	<add name="ConnectionString" connectionString="Server=.\SQLEXPRESS;Database=ProductsExamleDb;Trusted_Connection=Yes;"/>
</connectionStrings>

<!-- If we want to connect to a MS SQL Express database in a folder (App_Data) in the webapplication we can use the connection
string below to attach the database file to the SQL Server Instance (SQLEXPRESS).

<connectionStrings>
	<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Mydatabase.mdf;Integrated Security=True;User Instance=True"
	providerName="System.Data.SqlClient" />
</connectionStrings>