I created a stored procedure like the one below (I use this shortened version to try to understand our problem).
CREATE PROCEDURE bsp_testStoredProc AS BEGIN CREATE TABLE
From my C # code in VS2008, I am trying to use the Query component with the Use Existing Stored Procedure parameter to connect it to a DataTable / DataGridView to display the results.
However, since I select from a temporary table, in the properties of the Query component, Visual Studio does not display the columns returned from the stored procedure. I assume that it has problems defining the data types used, since SP is not based on a real schema.
Connecting to various stored procedures that are fetched from real tables really displays the columns correctly.
Does anyone know about this? Is there any hint I can add somewhere to explicitly indicate what data will be returned?
Thanks in advance.
source share