Connect to a database by importing connection details
Create a database connection by providing connection details in XML format.
Procedure
Copy the XML with database connection details to the clipboard.
Open the New database connection dialog. The step depends on whether you want to add a new database connection to workspace resources or attach it to a notebook.
On the Home page, select the workspace to which you want to add a database connection.
From the left-hand menu of the selected workspace, select Data and switch to the Databases tab. This will open the list of all workspace database connections.
On the Databases tab, click the Add button in the upper right corner.
Open the Attached data tool from the left-hand sidebar.
Switch to the Databases tab. You will see the list of all database connections available from the respective workspace.
At the bottom of the tab, click New database.
In the New database connection dialog, switch to the Import XML tab.
The tab looks like this:
Click the Import from clipboard button. This will process the provided data and open the connection dialog for the respective database type with all the fields pre-filled.
Provide the missing details, for example, the password.
Click the Test connection button at the bottom of the dialog.
Once successfully tested, click the Create and close button.
Results
If created for a specific notebook, the new connection will be automatically added to the workspace. You can later attach this database to any other notebook from this workspace.
If created for a workspace, this connection is added to the workspace databases and can be attached to any notebook from this workspace.
If OAuth authentication was used for this connection, report users and notebook collaborators may be required to provide their credentials to access the database.
To retrieve and process data from the connected database, use Query data with SQL cells.
Keywords
database, database connection, attach data, data sources, import connection details, connection details in XML, import XML