DataWorks lets you create multiple types of database nodes for SQL task development, periodic scheduling, and integration with other jobs.
Prerequisites
(Optional) Add a Resource Access Management (RAM) user to the workspace.
A RAM user for task development must be added to the workspace and granted either the Developer or Workspace Administrator role. The Workspace Administrator role has extensive permissions. Grant this role with caution. For more information about adding members and granting permissions, see Add members to a workspace.
Create a DataWorks data source.
Ensure that the data source can connect to the serverless resource group. For more information, see Network connectivity solutions.
Ensure that the data source is created using a Java Database Connectivity (JDBC) connection string. For more information, see Data source management.
Ensure that the data source is suitable for creating database nodes. For more information, see Supported data sources.
Before you develop a database node, you must create a node for the corresponding data source. For more information, see Create nodes for a scheduling workflow.
Step 1: Develop a database node
After you create a database node, you can configure it for development.
Select a data source.
From the Select Data Source drop-down list, click
to open the data source selection dialog box. In the dialog box, select the data source for your task. If the required data source is not available, click Add Data Source to add it.
NoteIn a standard mode workspace, only data sources configured for both the development and production environments are displayed.
Database nodes support development only with data sources created using a connection string.
Develop an SQL script.
In the SQL editor, write SQL statements to create your task. The following code shows an example of a simple query SQL statement.
SELECT * FROM you_table_name; --Query a table. SELECT '${var}'; --Configure a placeholder parameter.NoteYou can write statements using the syntax that is supported by the configured data source.
Configure a resource group for debugging.
Click Debugging Configurations. From the drop-down list, select a serverless resource group that can connect to your data source.
NoteTo access a data source over the public network or in a VPC environment, you must use a scheduling resource group that has passed the connectivity test with the data source. For more information, see Network connectivity solutions.
Configure debugging parameters.
Click Debugging Configurations. In the Script Parameters section, assign values to the parameters that are configured in the database node script.

After you configure the debugging settings, click
to save the SQL node. Then, click
to run the SQL script and verify that it runs as expected.
After you debug the SQL script, click Scheduling Configurations on the right side of the SQL editor to configure scheduling properties for the database node. For more information, see Configure scheduling properties for a node.
Step 2: Publish the database node and perform O&M
After you configure the scheduling properties, submit and publish the database node to the production environment. For more information, see Publish a node or workflow.
After the task is published, it runs periodically based on its configured scheduling properties. You can go to to view the published auto triggered task and perform O&M operations. For more information, see Get started with Operation Center.
Supported data sources
DataWorks supports the creation of database nodes for multiple types of data sources. The following types of data sources are supported:
Data sources for database nodes must be created using a JDBC connection string.
Although some databases support stored procedures, you cannot use them in DataWorks Data Development.