Skip to content

Commit 1627eb3

Browse files
committed
Update Azure SQL DB source and sink type
1 parent 3c465b3 commit 1627eb3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/data-factory/connector-azure-sql-database.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.workload: data-services
1212
ms.tgt_pltfrm: na
1313

1414
ms.topic: conceptual
15-
ms.date: 08/06/2019
15+
ms.date: 08/12/2019
1616
ms.author: jingwang
1717

1818
---
@@ -259,18 +259,18 @@ For a full list of sections and properties available for defining activities, se
259259

260260
### Azure SQL Database as the source
261261

262-
To copy data from Azure SQL Database, set the **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:
263263

264264
| Property | Description | Required |
265265
|:--- |:--- |:--- |
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 |
267267
| sqlReaderQuery | This property uses the custom SQL query to read data. An example is `select * from MyTable`. | No |
268268
| 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 |
269269
| 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 |
270270

271271
**Points to note:**
272272

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.
274274
- 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.
275275

276276
#### SQL query example
@@ -294,7 +294,7 @@ To copy data from Azure SQL Database, set the **type** property in the copy acti
294294
],
295295
"typeProperties": {
296296
"source": {
297-
"type": "SqlSource",
297+
"type": "AzureSqlSource",
298298
"sqlReaderQuery": "SELECT * FROM MyTable"
299299
},
300300
"sink": {
@@ -326,7 +326,7 @@ To copy data from Azure SQL Database, set the **type** property in the copy acti
326326
],
327327
"typeProperties": {
328328
"source": {
329-
"type": "SqlSource",
329+
"type": "AzureSqlSource",
330330
"sqlReaderStoredProcedureName": "CopyTestSrcStoredProcedureWithParameters",
331331
"storedProcedureParameters": {
332332
"stringData": { "value": "str3" },
@@ -365,11 +365,11 @@ GO
365365
> [!TIP]
366366
> 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).
367367

368-
To copy data to Azure SQL Database, set the **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:
369369

370370
| Property | Description | Required |
371371
|:--- |:--- |:--- |
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 |
373373
| 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 |
374374
| 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 |
375375
| 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
402402
"type": "<source type>"
403403
},
404404
"sink": {
405-
"type": "SqlSink",
405+
"type": "AzureSqlSink",
406406
"writeBatchSize": 100000
407407
}
408408
}
@@ -436,7 +436,7 @@ Learn more details from [Invoke a stored procedure from a SQL sink](#invoke-a-st
436436
"type": "<source type>"
437437
},
438438
"sink": {
439-
"type": "SqlSink",
439+
"type": "AzureSqlSink",
440440
"sqlWriterStoredProcedureName": "CopyTestStoredProcedureWithParameters",
441441
"storedProcedureTableTypeParameterName": "MyTable",
442442
"sqlWriterTableType": "MyTableType",
@@ -550,7 +550,7 @@ The following sample shows how to use a stored procedure to do an upsert into a
550550

551551
```json
552552
"sink": {
553-
"type": "SqlSink",
553+
"type": "AzureSqlSink",
554554
"SqlWriterStoredProcedureName": "spOverwriteMarketing",
555555
"storedProcedureTableTypeParameterName": "Marketing",
556556
"SqlWriterTableType": "MarketingType",

0 commit comments

Comments
 (0)