If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Informix with ado.net

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-26-10, 06:26
Navi Navi is offline
Registered User
 
Join Date: Apr 2008
Posts: 5
Question Informix with ado.net

SPL
Code:
DROP PROCEDURE lt_test5;

CREATE PROCEDURE rmvreg2:lt_test5 ( )
RETURNING char(1),char(10),char(8);

DEFINE cd CHAR(1);
DEFINE des CHAR(10);
DEFINE abr CHAR(8);

FOREACH

SELECT owner_cd,owner_des,owner_abr 

INTO
cd,
des,
abr
FROM vl_vhowner 
RETURN cd ,des,abr WITH RESUME;

END FOREACH;
END PROCEDURE;

-- Permissions for routine "lt_test5"
grant execute on lt_test5 to 'public';
Code:
IfxDataAdapter adapter = new IfxDataAdapter();

            IfxConnection connection = new IfxConnection();
            connection.ConnectionString = ConnetionString;

            //Set the command object properties.
            adapter.SelectCommand = new IfxCommand();
            adapter.SelectCommand.Connection = connection;
            
            adapter.SelectCommand.CommandText = "lt_test5";
            adapter.SelectCommand.CommandType = System.Data.CommandType.StoredProcedure;

            
            adapter.Fill(ds._Tax);
I need help ds._Tax datatable doesn't fill properly, column doesn't map properly is there any solution for this problem.
Reply With Quote
Reply

Tags
asp.net, informix, spl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On