You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/data-factory/connector-azure-sql-database.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.workload: data-services
12
12
ms.tgt_pltfrm: na
13
13
14
14
ms.topic: conceptual
15
-
ms.date: 08/06/2019
15
+
ms.date: 08/12/2019
16
16
ms.author: jingwang
17
17
18
18
---
@@ -259,18 +259,18 @@ For a full list of sections and properties available for defining activities, se
259
259
260
260
### Azure SQL Database as the source
261
261
262
-
To copy data from Azure SQL Database, setthe**type** property in the copy activity source to **SqlSource**. The following properties are supported in the copy activity **source** section:
262
+
To copy data from Azure SQL Database, the following properties are supported in the copy activity **source** section:
263
263
264
264
| Property | Description | Required |
265
265
|:--- |:--- |:--- |
266
-
| type | The **type** property of the copy activity source must be set to **SqlSource**. | Yes |
266
+
| type | The **type** property of the copy activity source must be set to **AzureSqlSource**. "SqlSource" type is still supported for backward compatibility. | Yes |
267
267
| sqlReaderQuery | This property uses the custom SQL query to read data. An example is `select * from MyTable`. | No |
268
268
| sqlReaderStoredProcedureName | The name of the stored procedure that reads data from the source table. The last SQL statement must be a SELECT statement in the stored procedure. | No |
269
269
| storedProcedureParameters | Parameters for the stored procedure.<br/>Allowed values are name or value pairs. The names and casing of parameters must match the names and casing of the stored procedure parameters. | No |
270
270
271
271
**Points to note:**
272
272
273
-
- If **sqlReaderQuery** is specified for **SqlSource**, the copy activity runs this query against the Azure SQL Database source to get the data. You also can specify a stored procedure by specifying **sqlReaderStoredProcedureName**and**storedProcedureParameters** if the stored procedure takes parameters.
273
+
- If **sqlReaderQuery** is specified for **AzureSqlSource**, the copy activity runs this query against the Azure SQL Database source to get the data. You also can specify a stored procedure by specifying **sqlReaderStoredProcedureName**and**storedProcedureParameters** if the stored procedure takes parameters.
274
274
- If you don't specify either **sqlReaderQuery** or **sqlReaderStoredProcedureName**, the columns defined in the "structure" section of the dataset JSON are used to construct a query. The query `select column1, column2 from mytable` runs against Azure SQL Database. If the dataset definition doesn't have "structure," all columns are selected from the table.
275
275
276
276
#### SQL query example
@@ -294,7 +294,7 @@ To copy data from Azure SQL Database, set the **type** property in the copy acti
294
294
],
295
295
"typeProperties": {
296
296
"source": {
297
-
"type": "SqlSource",
297
+
"type": "AzureSqlSource",
298
298
"sqlReaderQuery": "SELECT * FROM MyTable"
299
299
},
300
300
"sink": {
@@ -326,7 +326,7 @@ To copy data from Azure SQL Database, set the **type** property in the copy acti
> Learn more about the supported write behaviors, configurations, and best practices from [Best practice for loading data into Azure SQL Database](#best-practice-for-loading-data-into-azure-sql-database).
367
367
368
-
To copy data to Azure SQL Database, setthe**type** property in the copy activity sink to **SqlSink**. The following properties are supported in the copy activity **sink** section:
368
+
To copy data to Azure SQL Database, the following properties are supported in the copy activity **sink** section:
369
369
370
370
| Property | Description | Required |
371
371
|:--- |:--- |:--- |
372
-
| type | The **type** property of the copy activity sink must be set to **SqlSink**. | Yes |
372
+
| type | The **type** property of the copy activity sink must be set to **AzureSqlSink**. "SqlSink" type is still supported for backward compatibility. | Yes |
373
373
| writeBatchSize | Number of rows to insert into the SQL table *per batch*.<br/> The allowed value is **integer** (number of rows). By default, Azure Data Factory dynamically determines the appropriate batch size based on the row size. | No |
374
374
| writeBatchTimeout | The wait time for the batch insert operation to finish before it times out.<br/> The allowed value is **timespan**. An example is “00:30:00” (30 minutes). | No |
375
375
| preCopyScript | Specify a SQL query for the copy activity to run before writing data into Azure SQL Database. It's invoked only once per copy run. Use this property to clean up the preloaded data. | No |
@@ -402,7 +402,7 @@ To copy data to Azure SQL Database, set the **type** property in the copy activi
402
402
"type": "<source type>"
403
403
},
404
404
"sink": {
405
-
"type": "SqlSink",
405
+
"type": "AzureSqlSink",
406
406
"writeBatchSize": 100000
407
407
}
408
408
}
@@ -436,7 +436,7 @@ Learn more details from [Invoke a stored procedure from a SQL sink](#invoke-a-st
0 commit comments