Originally posted by Jason Puskar
Hello,
I am writing my first DB call to a stored procedure on an SQL server and having issues. I am able to call the procedure, and update the database, only the column headings are updating the table and not the values that I am sending in.
I created an xlate that converts an HL7 ORM message to a VRL record layout. The VRL formated data is sent to a PROTOCOL:database-outbound thread. The properties of this thread have been set up to call a stored Procedure (below). I have been able to hit the stored procedure, and update the correct columns of the database. The issue is that the values from the VRL are not populating into the stored procedure query. For example, if the below variable of patientTransportTest.visitNumber is 'V123456', the SQL database entry is actually "patientTransportTest.visitNumber" and not the value of "V123456" for that record.
I feel like it's a simple syntax issue I am overlooking.
Content of call:
@{CALL [dbo].[sp_patientTransportTest] (
@OrderStatus = '<patientTransportTest.OrderStatus>',
@Gender = '<patientTransportTest.Gender>',
@visitNumber = '<patientTransportTest.visitNumber>' )}
Thanks,
Jay