azure data factory - Copy activity with Sink stored procedure fails -


i trying copy data azure sql db on-prem sql db copy activity , sink stored procedure. can copy data doing standard copy activity without stored proc isnt connection issue.

but when try stored proc fails. dont believe has sql table type in sql removed , same error happened.

the error in sql profiler is: error: 102, severity: 15, state: 1 incorrect syntax near ' '.

it has line recorded: declare @a exporttype select * from @a fails if run line

here stored proc

alter procedure [dbo].[spexport] @crm [dbo].[exporttype] readonly begin     insert crm     select upper(name) @crm     end 

here table type

create type [dbo].[exporttype] table(     [id] [int] identity(1,1) not null,     [name] [nvarchar](50) null ) go 

here config below.

{ "$schema": "http://datafactories.schema.management.azure.com/schemas/2015-09-01/microsoft.datafactory.pipeline.json", "name": "copytolocal", "properties": {     "description": "copy azure sql local sql",     "activities": [{             "name": "copy local sproc",             "type": "copy",             "typeproperties": {                 "source": {                     "type": "sqlsource"                 },                 "sink": {                     "type": "sqlsink",                     "sqlwritertabletype": "exporttype",                     "sqlwriterstoredprocedurename": "spexport"                 }             },             "inputs": [{                     "name": "sourcedataset"                 }             ],             "outputs": [{                     "name": "sprocdataset"                 }             ],             "policy": {                 "concurrency": 10,                 "executionpriorityorder": "oldestfirst",                 "retry": 3,                 "timeout": "00:05:00"             },             "scheduler": {                 "frequency": "minute",                 "interval": 20             }         }     ],     "start": "2017-08-02t08:45:00z",     "end": "2019-05-11t00:00:00z" } 

}


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -