Hi All:
I'm very new to Teradata world. I've been trying to call a stored procedure on a Teradata Database from VB. I've trie many different ways but no result. I always get errors. I tried setting:
With cmd
.ActiveConnection = cnn
.CommandType = adCmdStoredProc
.CommandText = "testSP"
.Parameters.Append .CreateParameter("str", adInteger, adParamInput, 1, 132)
.Parameters.Append .CreateParameter("outStr", adChar, adParamOutput, 30, ""
End With
But I get "mismatched number of parameters" error. While I know, that this sp has only two Parameters.
Then I tried changing the CommandText to include parameters values, as:
.CommandText = "testSP(5,""strout"""
but it didn't work either. I get "no colum found with name 'strout'".
Are ther any "gurus" to help me out.
Thnx
-Inam.
I'm very new to Teradata world. I've been trying to call a stored procedure on a Teradata Database from VB. I've trie many different ways but no result. I always get errors. I tried setting:
With cmd
.ActiveConnection = cnn
.CommandType = adCmdStoredProc
.CommandText = "testSP"
.Parameters.Append .CreateParameter("str", adInteger, adParamInput, 1, 132)
.Parameters.Append .CreateParameter("outStr", adChar, adParamOutput, 30, ""
End With
But I get "mismatched number of parameters" error. While I know, that this sp has only two Parameters.
Then I tried changing the CommandText to include parameters values, as:
.CommandText = "testSP(5,""strout"""
but it didn't work either. I get "no colum found with name 'strout'".
Are ther any "gurus" to help me out.
Thnx
-Inam.