I have a query that should always be returning a single int. I have now logged it returning a string entirely unrelated to what it should be.
We\'ve been ge
the Field "PkID" is a varchar/char in the "WebSite" Table.
If the "ISNULL" part of the query is true then it will return an integer (0), else it will return an string with the value of "PkID"