Quantcast
Channel: Nintex Connect: Unanswered Threads
Viewing all articles
Browse latest Browse all 2462

Execute Sql from a string variable

$
0
0

Hi, 
I'm trying to insert a record into my database with information received from the work flow.

 

insert into EventRequestLog

(eventType, Requestor, etc...)

 Values (''{WorkflowVariable:EventType}','{WorkflowVariable:Requestor}',etc...)

 

 This works if it put in directly as the Query in the Exectu Sql action, However, I am wanting to use string builder to store the whole query in a multiline text variable called queryText

if I use the vairable {WorkflowVariable:queryText} in the Query, with Escape reference values for use in strings checked, it no longer works.
It gives me the error

Error performing database operation. Incorrect syntax near 'HireEmployee'.

'Hireemployee' is the workflow variable EventType.
I also emailed myself the string, and if I copy and paste what the strong is directly into the a SQL query in SQL server, it works with out producing any errors.

 I'm at a loss. 
The string is correct.

Thanks for any help 

 



Viewing all articles
Browse latest Browse all 2462

Trending Articles