Ciao a tutti il mio problema è il seguente.
Ho creato su un database SqlServer 2005 una stored procedure
che prende in input una string (varchar(50)) e inserisce il valore in una tabella.
Ora eseguo la stored da una sub in vb.net ma mi rilascia sempre l'errore che il parametro di
input non viene specificato.
Posto il codice:

[Code]

Public Sub stored(ByVal Stringa As String)
'

Con1 = New OdbcConnection
Con1.ConnectionString = ConfigurationManager.AppSettings("ConnectionString ")
Comand1 = New OdbcCommand

Try


Comand1.CommandType = CommandType.StoredProcedure
Comand1.CommandText = "TEST"
Comand1.Connection = Con1


param1 = New OdbcParameter
param1 = Comand1.Parameters.Add("@TEST", OdbcType.VarChar, 50)
param1.Direction = ParameterDirection.Input
param1.Value = Stringa





Con1.Open()

Reader1 = Comand1.ExecuteReader

While Reader1.Read()
Console.WriteLine(Reader1.GetString(0))
End While

Reader1.Close()
Con1.Close()



Catch ex As OdbcException
Console.WriteLine(ex.Message)
Console.ReadLine()
Reader1.Close()
Con1.Close()
End Try

Reader1.Close()
Con1.Close()
[Code]