public static Connection establishConnection() {

		// Connection string for your SQL Database server.
		String connectionString = "jdbc:sqlserver://ah0sncq8yf.database.windows.net:1433"
				+ ";"
				+ "database=db_like"
				+ ";"
				+ "user=MySQLAdmin@ah0sncq8yf"
				+ ";" + "password=almeta%6y";

		Connection connection = null; // For making the connections

		try {
			Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
		}

		catch (ClassNotFoundException cnfe) {

			System.out.println("ClassNotFoundException " + cnfe.getMessage());
		}

		try {

			connection = DriverManager.getConnection(connectionString);

		}

		catch (SQLException e) {
			e.printStackTrace(System.out);
		}
		return connection;
	}