Sometimes in MS SQL, I can't (or don't want to) send back a properly-formatted string, such as {"data":[]}
, when there is no data to return. Sometimes, if I do, I might send this {"data":null}
or this []
. DT will recognize that, and say, "No matching records found".
So, if I don't send anything back, is there some way inside of DT for me to tell it, "Hey, there's no records" if the structure is missing?
OR, does DT always expect some sort of structure, even when there are no records? (Some of the SQL queries are really hard to do)