P
Patrick Kristiansen
Hi!
I'm using a SqlDataAdapter to fill a DataTable, but I seem to have
problem when the SelectCommand returns no rows. The SelectCommand is
actually a stored procedure which has one parameter and essentially is
just a SELECT-query. The error it gives me, is this when there are no
records to return
<error>
Procedure 'HentKurv' expects parameter '@Ejer', which was not
supplied.
</error>
(Nevermind the names).
Is this an expected behavioiur of the SqlDataApapter.Fill method, or
should I look for an answer elsewhere in my code?
Regards,
Patrick
I'm using a SqlDataAdapter to fill a DataTable, but I seem to have
problem when the SelectCommand returns no rows. The SelectCommand is
actually a stored procedure which has one parameter and essentially is
just a SELECT-query. The error it gives me, is this when there are no
records to return
<error>
Procedure 'HentKurv' expects parameter '@Ejer', which was not
supplied.
</error>
(Nevermind the names).
Is this an expected behavioiur of the SqlDataApapter.Fill method, or
should I look for an answer elsewhere in my code?
Regards,
Patrick