ado and sp_procedure_params_rowset get nothing columns

Answered ado and sp_procedure_params_rowset get nothing columns

  • Thursday, September 20, 2012 9:35 AM
     
      Has Code

    Hi,

    i'm use an old VB6-Programm,

    when the commandobject get a value,

    then on the Database (SQLServer 2008) will run the procedure "sp_procedure_params_rowset"

    Like this:

    Set comProcedur.ActiveConnection = db

    comProcedur.CommandType = adCmdStoredProc  

    comProcedur.CommandText = "kalk.pTest"   'Parameter zuweisungen  

    If ZellenWert(Record, Field).Art = eProzedur.Abmessung Then     

    comProcedur("@FunktionsKennung") = eProzedur.Abmessung                         <----------- sp_procedure_params_rowset  

    Else    comProcedur("@FunktionsKennung") = eProzedur.Voreinstellung  

    End If

    For a normal user (not a DBO Role, only db_datareader and db_datawriter ROLE ) I now get an error message.

    What right do I adjust to the DB?

    Thanks Mat


    • Edited by Matula J Thursday, September 20, 2012 9:36 AM
    •  

All Replies