# Stored Procedure in Query tag

**URL:** <https://forum.inductiveautomation.com/t/stored-procedure-in-query-tag/27679>\
**Category:** Ignition\
**Created:** [August 22, 2019, 6:37pm UTC](https://forum.inductiveautomation.com/t/stored-procedure-in-query-tag/27679 "2019-08-22T18:37:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitkarwa21](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ankitkarwa21](https://forum.inductiveautomation.com/u/ankitkarwa21)\
**Post date:** [August 22, 2019, 6:37pm UTC](https://forum.inductiveautomation.com/t/stored-procedure-in-query-tag/27679/1 "2019-08-22T18:37:02Z")

</div>

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:

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

```

Error:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/14d94004f3dd3cd831f743e259895b29cc38c759.png)

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [August 22, 2019, 6:54pm UTC](https://forum.inductiveautomation.com/t/stored-procedure-in-query-tag/27679/2 "2019-08-22T18:54:06Z")

</div>

Try putting the tag paths in quotes
