title: Azure Data Factory copy activity with stored procedure
body: <p>Is there a workaround for the fact that you need to name the first parameter of the stored procedure (the one containing the table type) exactly as the property "tableName" in the input dataaset?</p>
  
  <p><em>Im using Azure Data Factory V1.</em></p>
  
  <p><strong>Input dataset (On-premise Oracle source)</strong></p>
  
  <pre><code>{
  "name": "DS-ORA-WMS-CDC-DLYTRN",
  "properties": {
      "published": false,
      "type": "OracleTable",
      "linkedServiceName": "LS-ORA-WMS-CDC",
      "typeProperties": {
          "tableName": "WMST.DLYTRN"
      },
      "availability": {
          "frequency": "Hour",
          "interval": 1
      },
      "external": true,
      "policy": {}
  }}
  </code></pre>
  
  <p><strong>Output dataset (Azure SQL database)</strong></p>
  
  <pre><code>{
  "name": "DS-ASQL-ANALYTICS-DLYTRN",
  "properties": {
      "published": false,
      "type": "AzureSqlTable",
      "linkedServiceName": "LS-SQL-ANALYTICS-DB",
      "typeProperties": {
          "tableName": "wms.DLYTRN"
      },
      "availability": {
          "frequency": "Hour",
          "interval": 1
      }
  }}
  </code></pre>
  
  <p><strong>Pipeline</strong></p>
  
  <pre><code>{
  "name": "test",
  "properties": {
      "description": "test pipeline",
      "activities": [
          {
              "type": "Copy",
              "typeProperties": {
                  "source": {
                      "type": "OracleSource",
                      "oracleReaderQuery": "select * from WMST.DLYTRN"
                  },
                  "sink": {
                      "type": "SqlSink",
                      "sqlWriterStoredProcedureName": "wms.spPersistDlytrn",
                      "storedProcedureParameters": {
                          "srcdc": {
                              "value": "CDC"
                          }
                      },
                      "sqlWriterTableType": "wms.DLYTRNType",
                      "writeBatchSize": 0,
                      "writeBatchTimeout": "00:00:00"
                  }
              },
              "inputs": [
                  {
                      "name": "DS-ORA-WMS-CDC-DLYTRN"
                  }
              ],
              "outputs": [
                  {
                      "name": "DS-ASQL-ANALYTICS-DLYTRN"
                  }
              ],
              "policy": {
                  "timeout": "1.00:00:00",
                  "concurrency": 1,
                  "retry": 3
              },
              "scheduler": {
                  "frequency": "Hour",
                  "interval": 1
              },
              "name": "TestWMSCopyWithSproc"
          }
      ],
      "start": "2018-01-04T07:00:00Z",
      "end": "2018-01-08T00:00:00Z",
      "isPaused": false,
      "hubName": "hub",
      "pipelineMode": "Scheduled"
  }}
  </code></pre>
  
  <p><strong>Stored procedure</strong></p>
  
  <pre><code>CREATE PROCEDURE [wms].[spPersistDlytrn]
     @DLYTRNTable [wms].[DLYTRNType] READONLY,
     @srcdc VARCHAR(4)
  AS
  ...
  RETURN 0
  </code></pre>
  
  <p>When running the activity it return the below error message:</p>
  
  <blockquote>
    <p>Database operation failed on server 'Sink:tcp:someservername.database.windows.net,1433' with SQL Error Number '349'. Error message from database execution : The procedure "spPersistDlytrn" has no parameter named "@wms.DLYTRN"..</p>
  </blockquote>
  
  <p>As it is not possible to name the stored procedure parameter "wms.DLYTRN" is there a way to exclude the schema prefix?</p>