You must have a configuration problem. I am using the Add method in many
applications using beta 2.
[quoted text, click to view] "David Sagenaut" wrote:
> How can I calling a stored procedure (say "sp_example") in ADO.NET 2.0? I
> used to do this in ADO.NET 1.1, but in 2.0 (beta2 vs2005), after the
> following
> ...
> sqlConnection con = new sqlConnection(strCon)
> sqlCommand cmd = sqlCommand("sp_example", con);
> cmd.CommandType = CommandType.StoredProcedure;
>
> cmd.Parameters.???
>
> under the Parameters property, I only find the AddRange() and AddWithValue()
> method, but not the Add() method which is in ADO.NET 1.1. Does anyone have
> an idea how to call a stored procedure in the new 2.0 framwork? Thanks in
> advance.
>
> David
>
>
How can I calling a stored procedure (say "sp_example") in ADO.NET 2.0? I
used to do this in ADO.NET 1.1, but in 2.0 (beta2 vs2005), after the
following
...
sqlConnection con = new sqlConnection(strCon)
sqlCommand cmd = sqlCommand("sp_example", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.???
under the Parameters property, I only find the AddRange() and AddWithValue()
method, but not the Add() method which is in ADO.NET 1.1. Does anyone have
an idea how to call a stored procedure in the new 2.0 framwork? Thanks in
advance.
David