CADENES DE CONNEXIÓ

A.- PER ACCEDIR A SQLSERVER(VERSIÓ EXPRESS) A BD SITUADA AL DIRECTORI DE TREBALL

                SqlConnection dataConnection = new SqlConnection();
                dataConnection.ConnectionString = "Data Source=.\\SQLEXPRESS;" +
                "AttachDbFilename=|DataDirectory|\\NORTHWND.MDF;" +
                "Integrated Security=True;" +
                "Connect Timeout=30;" +
                "Initial Catalog=NORTHWND;" +
                "User Instance=False";

B.- PER ACCEDIR  A BD MYSQL SITUADA A LOCALHOST SENSE PASSWORD

                MySqlConnection dataConnection = new
MySqlConnection("datasource=localhost;database=biblioteca;uid=root");