Why doesn't InfoPath load data from a stored procedure that uses a UNION query?
Ex: if the stored procedure is:
select myColumn from table1
the data source populates just fine. But if the stored procedure is:
select myColumn from table1
union
select myColumn from table1
the data source is not populated. And yes, that Union query is returning the same exact data. I actually stumbled upon it because I was trying to do this:
select
myColumn from table1
union
select 'someValue' as myColumn
I'm primarily a SQL and .Net developer, so I'm perplexed as to what InfoPath is doing.
Any enlightenment is greatly appreciated!