Using linq2sql, I've seen examples of using stored procedures for insert, update and delete but how can I use a stored procedure for select?
View Complete Post
I have xml structure and Table structure as same. I need to import the xml data to Table using stored procedure.
Can you provide sample SP for this?
Thanks in Advance
Here is my SP:
create or replacePROCEDURE ZGETUSERSSIGNONS (vUid IN VARCHAR2, p_getuserssignon_recordset1 OUT SYS_REFCURSOR) ASBEGIN Open p_getuserssignon_recordset1 for SELECT Distinct(Userid), UserPassword, SecurityLevel, ActiveStatusFROM ZSIGNON WHERE substr(UserId,1,2) <> vUidOrder By UserId;END ZGETUSERSSIGNONS;
I would like to run this SP from code and fill a gridview with the result.
I am not sure how to go about this, as I have found several different examples, other than the one I think I need.
I am using the oracle data provider and I have an input parameter (vUid, which will equal "zz").
First question. When filling a gridview with a result set from a stored procedure should the recordset OUT be defined as a REFCURSOR (like i did above)?
Do you have example code as to how to execute the SP and fill a gridview? I keep trying different variations of code i've found on the internet without any success other than getting more confused.
(I am using VS 2005, VB).
I'm using Dynamic Data and have created a custom List.aspx page. I simply want to populate the grid with a stored procedure. I've seen some posts about doing this with a LinqDataSource but not an EntityDataSource. Does someone have an example or a different way of doing this? Thanks.