| 
        
        Parameter
         | 
      
        
        Type
         | 
      
        
        Description
         | 
     
| 
        
        IN
         | 
      
        | 
      
        | 
     
| 
        
        hdbc
         | 
      
        
        int64
         | 
      
        
        The connection handle; set to 0 if the error is related to a statement and not to the connection.
         | 
     
| 
        
        hstmt
         | 
      
        
        int64
         | 
      
        
        The statement handle; set to 0 if the error is related to a connection.
         | 
     
| 
        
        iErrorIndex
         | 
      
        
        int
         | 
      
        
        Set to DAM_IP_ERROR to indicate an error from the IP.
         | 
     
| 
        
        iNativeError
         | 
      
        
        int
         | 
      
        
        Native error as defined by the IP.
         | 
     
| 
        
        szErrorText
         | 
      
        
        string
         | 
      
        
        The text to use in place of the standard text. Data from this buffer is copied into the error queue. Set to NULL to use the default error string.
        
       
        NOTE: The error message is truncated to 2048 characters.
         |