Stored Procedure in Query tag

#1

What is the right syntax to pass a parameter (tag) to a stored procedure?
I am getting an error when I am passing a tag as a parameter.
The tag I am passing as parameter is a datetime.
If I pass a static time, it works but a tag gives an error
Script:

exec Stored Procedure  @StartTime = {[~]Projects/PlantLogistics/ShiftTimings/Shift1} , @EndTime = {[~]Projects/PlantLogistics/ShiftTimings/CurrentTime}

Error:
image

0 Likes

#2

Try putting the tag paths in quotes

0 Likes