Well there is your problem.
The input parameter to the stored procedure is named @Parameter but you
are
adding a parameter called @username.
Thanks for your reply , i was saying its problem with MDAC because i
was
going through couple MSDN knowledge base issues and they suggested to
install
the MDAC latest srvice pack...
anyway here is my code.....
Dim db As Database = DatabaseFactory.CreateDatabase("Test")
Dim sqlCommand As String = "dbo.tsp_Test"
Dim dbCommandWrapper As DBCommandWrapper =
db.GetStoredProcCommandWrapper(sqlCommand)
With dbCommandWrapper
.AddInParameter("@username", DbType.String, "Test")
End With
' DataSet that will hold the returned results
Dim productsDataSet As DataSet = Nothing
productsDataSet = db.ExecuteDataSet(dbCommandWrapper)
please suggest....
:
On Thu, 23 Mar 2006 16:29:01 -0800, vsr
<
[email protected]>
wrote:
¤ I am getting the followign error when using ODBC from ADO.NET.....
¤ System.Data.Odbc.OdbcException: ERROR [42000] [Microsoft][ODBC SQL
Server
¤ Driver][SQL Server]Procedure 'StoredProcedure' expects parameter
¤ '@Parameter', which was not supplied.
¤
¤ I installed latest MDAC , still i am getting error...
¤ any help?
You're going to have to post your code and the parameter definitions
of
your stored procedure in
order for us to troubleshoot this problem.
This error has nothing to do with MDAC.
Paul
~~~~
Microsoft MVP (Visual Basic)