When we specify DateTime parameter and set it to Stored Function,
it causes SQL error, says
Incorrect syntax near '{'
SQL State : 42000
Native Error : 170
When we set Date, not DateTime, it's OK.
But I need to set DateTime.
When we set DateTime to usual WHERE statement, it seems to work fine.
How can I solve the problem?