[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Oracle 10 VBNet ASPX

Asked by aka_calvin in Oracle Database, Programming Languages, .NET, Microsoft Visual Basic.Net, .NET Framework 2.x

Tags: Database is Oracle 10g / aspx / .net 2005, framework 2.0

I want to retrive the value of UPD_DATE from DQ_MON_TBL_REF_SUBAREA table.

I want to use this command "cmdDB.Parameters("p_dq_mon_sub_area").Value" in .net
I have declare "p_dq_mon_sub_area OUT DQ_MON_TBL_REF_SUBAREA.UPD_DATE%TYPE" in package.

Is it possiable or how I can achive that
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
************************************************************
Oracle 10 g
************************************************************
       PROCEDURE PR_DQ_DISTINCT_SUBJECTAREA_GET(
			  					p_dq_mon_sub_area OUT DQ_MON_TBL_REF_SUBAREA.UPD_DATE%TYPE,
                     			cur_out				OUT SYS_REFCURSOR,
                     			p_status_n			OUT NUMBER
    )
    IS
		lv_sql_main    VARCHAR(4000)      := NULL;    
    BEGIN
     p_status_n         := cSUCCESS_RTN;
    IF cur_out%ISOPEN THEN
       CLOSE cur_out;
    END IF;
    
	  lv_sql_main := 'SELECT  * From DQ_MON_TBL_REF_SUBAREA Order By DQ_SUBJECT_AREA_C DESC';
 
    OPEN cur_out FOR lv_sql_main;
 	EXCEPTION
    WHEN OTHERS
    THEN
    IF cur_out%ISOPEN THEN
    	CLOSE cur_out;
    END IF;
    p_status_n := cFAIL_RTN;
 	END PR_DQ_DISTINCT_SUBJECTAREA_GET;
 
************************************************************
VB.Net 
************************************************************
 
 Public Shared Function GetSubjectAreaFromDQ_Ref(ByVal StrLastUpd As String) As DataSet
        Dim db As Database
        Dim cmdDB As Common.DbCommand
        Dim ds As DataSet
        Dim sCommandSQL As String = PR_UPDATE_GET_SUBJECTAREA
        Dim iStatus As Int64
        Try
            db = DatabaseFactory.CreateDatabase("OracleSource")
            cmdDB = db.GetStoredProcCommand(sCommandSQL)
            db.AddOutParameter(cmdDB, "p_dq_mon_sub_area", DbType.String, 16)
            db.AddOutParameter(cmdDB, "p_status_n", DbType.Int64, 9)
            ds = db.ExecuteDataSet(cmdDB)
            MsgBox(cmdDB.Parameters("p_dq_mon_sub_area").Value)
            If Not CommonFunctions.IsEmptyField(cmdDB.Parameters("p_status_n").Value) Then
                iStatus = CInt(cmdDB.Parameters("p_status_n").Value)
            Else
                iStatus = NULLSTATUS
            End If
            If iStatus <> 0 Then
                Throw New Exception(CommonFunctions.BuildDALExceptionMsg(MethodBase.GetCurrentMethod.Name, PR_RETRIVE_USER_ID_DTLS, iStatus))
            End If
            Return ds
        Catch ex As Exception
            Throw ex
        End Try
    End Function
[+][-]10/19/09 05:26 AM, ID: 25604495Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Oracle Database, Programming Languages, .NET, Microsoft Visual Basic.Net, .NET Framework 2.x
Tags: Database is Oracle 10g / aspx / .net 2005, framework 2.0
Sign Up Now!
Solution Provided By: slightwv
Participating Experts: 2
Solution Grade: A
 
[+][-]10/19/09 01:16 AM, ID: 25603326Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10/19/09 01:17 AM, ID: 25603328Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]10/19/09 01:18 AM, ID: 25603337Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/19/09 01:57 AM, ID: 25603522Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/19/09 01:59 AM, ID: 25603530Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/19/09 03:50 AM, ID: 25604026Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/19/09 03:59 AM, ID: 25604067Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/20/09 10:57 PM, ID: 25621077Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/08/09 08:23 AM, ID: 25770888Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625