Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,576 of 10,840    |
|    Chris Asaipillai to All    |
|    Type name is invalid for Stored Procedur    |
|    21 Jun 05 23:32:50    |
   
   From: chris.asaipillai@btinternet.com   
      
   I have a problem executing the following Stored Procedure from code.   
      
      
   The SP Text runs like this:   
      
      
   ALTER PROCEDURE prc_InsertContractDirectStatus_tmp   
    @var_ContractID VARCHAR(50)   
      
      
   insert into tblContractAuditHistory (ContractID)   
    VALUES (@var_ContractID)   
      
      
   The VB code which calls the procedure runs like this:   
      
      
    Dim adoRs As ADODB.Recordset   
    Dim adoCmd As ADODB.Command   
    Dim adoPm As ADODB.Parameter   
      
      
    Dim strContractID As Variant   
    Dim strContractStatus As Variant   
      
      
   Set adoCmd = New ADODB.Command   
      
      
    With adoCmd   
    .ActiveConnection = strConnection   
      
      
    Set adoPm = .CreateParameter("ContractID", adVariant, adParamInput,   
   , strContractID)   
    .Parameters.Append adoPm   
    .CommandText = "prc_InsertContractDirectStatus_tmp"   
    .CommandType = adCmdStoredProc   
      
      
    adoCmd.Execute   
    End With   
      
      
   However i get the following error message:   
   Type name is invalid.   
      
      
   Error code : -2147217872   
      
      
   Any ideas as to why this is happening?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca