====================
create_connection_ex
====================

.. py:method:: create_connection_ex(self, db_module, database, user=None, password=None, host=None, port=None, encoding=None, server=None)

**domain**: server

**language**: python

**class** :doc:`Task class </refs/server/task_api>`

Description
===========

Use ``create_connection_ex`` to create a connection to other databases.

The method returns a new connection.

A developer must close a connection after it is no longer needed.

See also
========

:doc:`How can I use data from other database tables </how_to/how_to_data_from_other_database_tables>`

