Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

run sql custom function

$
0
0

hi guys

 

Please tell me how to run the sql function to update the sql table through data services..

 

see the below sql statement which is running fine in sql management studio, but not through data services


UPDATE Article SET ArticleCategories = (SELECT dbo.[SplitAndRemoveDuplicates](';', ArticleCategories))

 

I have tried

 

Print(exec( sql( database_connection', 'UPDATE Article SET ArticleCategories = (SELECT dbo.[SplitAndRemoveDuplicates](';', ArticleCategories))'),'',8 ));

 

[Script:Script2680]
The script <Script2680> contains an invalid expression. Additional information: <Identifier <SplitAndRemoveDuplicates> is unrecognized. Check its spelling and usage. If it is a variable, it needs a preceding '$'; if a constant, it must be quoted; if a column, verify that such a column exists in a table.>. (BODI-1111242)

 

Tried creating function call in query transform as well.. but getting an error..

 

any help please


Viewing all articles
Browse latest Browse all 4013

Trending Articles