vb.net - Parameter name is missing, While executing Function via code -
am trying execute following code dim transaction pgsqltransaction dim command new pgsqlcommand dim paramlastno pgsqlparameter = command.parameters.add("funcupdategtab03", pgsqltype.int) command.connection = myconnstr myconnstr.open() command.transaction = transaction transaction = command.connection.begintransaction() try command.commandtext = _ "select funcupdategtab03(" & sord & "," & gintacyrid & "," & gintbranchid & ");" command.executescalar() updategtab03 = paramlastno.value transaction.commit() return updategtab03 catch ex exception transaction.rollback() msgbox(ex.message, msgboxstyle.information, "rstari9 - updategtab03") catch ex exception transaction.rollback() msgbox(ex.message, msgboxstyle.information, "rstari9 - updategtab03") myconnstr.close() ...