Elenco parametri (nome/tipo) procedure Oracle

Dim readCommand As New OracleCommand
Dim sqlconn As New OracleConnection(STRCONN)
        sqlconn.Open()
        readCommand.Connection = sqlconn
        readCommand.CommandText = "P_CNT_CONTAB_FV_TESTATA"     '  ----   nome procedura  -----
        readCommand.CommandType = CommandType.StoredProcedure

        'attraverso il commandbuilder recupero i parametri
        Dim builder As New OracleCommandBuilder
        builder.DeriveParameters(readCommand)

        'ciclo sulla collezione dei parametri
        Dim Par As OracleParameter
        For Each Par In readCommand.Parameters
            Response.Write(Par.ParameterName + " " + Par.DbType.ToString() + " " + Par.Direction.ToString() + "<br>")
        Next

        sqlconn.Close()

posted @ giovedì 11 novembre 2004 14:48

Print

Comments on this entry:

Comments have been closed on this topic.
«novembre»
domlunmarmergiovensab
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345