Articles in this section

Import data into Microsoft SQL

Tip: Click Open handlebars editor button to open the Build SQL query editor and ask Celigo AI to generate a query for you. Enter a description of your query in plain English in the space provided, and Celigo AI will attempt to generate a query based on your prompt.

Before you begin

Set up a connection to Microsoft SQL.

Use bulk insert SQL query (recommended; only available for new, cloud-based Microsoft SQL imports)

The bulk insert data option is ideal for large data volumes. integrator.io builds the insert query for you automatically for each batch of records. Each batch's default number of records bound is 100, but you can use the Batch size field to tune your imports as needed. There is a query limit of 100KB, so for larger batch sizes, the number of records imported in a single request is adjusted to the size limit.

Note: For bulk insert, if you have data types such as money, numeric, decimal, smalldatetime, then you must check if the values to be inserted are within the accepted range of the destination column. If the values are out of range, use another data type that supports the required range. To verify the range based on the server version used, see Data types (Transact-SQL).

By using metadata, you can now:

Note:
  • You can use any schema and table name regardless of what you used in your connection with the following format in your import’s Destination table search: database.schema.table name.
  • The bulk insert data option is only available for new, cloud-based Microsoft SQL imports.

Use SQL query once per record

Execute a SQL query once for each record.

You can write your SQL command in the SQL query text field. Click Edit (Edit button) to the right of the text field to open the SQL Query builder AFE.

Use SQL query once per page of records

Execute a SQL query once per page of data. You can write your SQL command in the SQL query text field. Click Edit (Open handlebars editor button) to the right of the text field to open the SQL Query builder AFE.

Use SQL query on first page only

Use this option if you want to run a SQL command once per flow run. The SQL will execute as soon as the first page of data reaches the flow step. This option should be used carefully to avoid race conditions in your flows.

first page only.png
Was this article helpful?
0 out of 2 found this helpful

Comments

0 comments

Please sign in to leave a comment.