Hi all,
I have a macro that calls a stored procedure which returns a set of data. This works fine until I put some code in the stored procedure prior to the SELECT statement. I have NoCount On, but it appears that the Excel QueryTables method returns the *first* select statment in the procedure and not the final one.
How can I make QueryTables return the final statement of the procedure?
Thanks,
--Jim
I have a macro that calls a stored procedure which returns a set of data. This works fine until I put some code in the stored procedure prior to the SELECT statement. I have NoCount On, but it appears that the Excel QueryTables method returns the *first* select statment in the procedure and not the final one.
How can I make QueryTables return the final statement of the procedure?
Thanks,
--Jim