• The script without the xml portion runs fine, as you noticed. However, with the xml portion, the script returns only the first record from the BETWEEN statement, and even then only a partial result. It does not actually even close the xml fully. My frustration is that this was working perfectly fine last week, but then when I ran it again yesterday it started with the aforementioned behavior.