- You use a version of Microsoft SQL Server Native Client that is earlier than Microsoft SQL Server Native Client 11.0.
- Your code makes a call to the SQLDescribeCol function for a complex union query that contains parameters and a WHERE clause.
- Compile the query into a stored procedure that uses parameters.
- Reverse the order of the SELECT statements in the union query so that the constant field is in the last SELECT statement.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Article ID: 2900760 - Last Review: 9 Nov 2013 - Revision: 1