Ask a Question related to ASP.NET General, Design and Development.
-
Shalini Noronha #1
DataAdapter
Hi
I use a DataAdapter. To which is pass a Stored Proc and
Connection
SqlDataAdapter DA = new SqlDataAdapter("storedProd",Conn);
how do i pass parameters to my stored proc
Kindly Help
Shalini Noronha Guest
-
DataAdapter question
I'm using ADO style. I have an Access database with four tables that I will want to do queries on. I will want to do queries on all four tables, at... -
DataAdapter and multiple result sets
I have a SQL Server stored procedure that returns multiple recordsets (three of them), in the same way that sp_helpdb does (try entering EXEC... -
update sql unique key with dataadapter
I got a typed dataset of data from a Sql server and i binded them on a grid, then if the user edit the grid all changes will be sent back throw... -
Distributed Arch Guidance for DataAdapter and WS
My project involves editing a complex set of data populated from 5-6 tables in a smart client WinForms process. 1. Clients requests data. 2.... -
DataAdapter Insert data into a query
I have the query "SELECT * FROM RIGHT JOIN VisiterInfo ON .=VisiterInfo." which I use to select data from two tables to display on screen. I use... -
S. Justin Gengo #2
Re: DataAdapter
Shalini,
You should create a SqlCommand object
SqlClient.SqlCommand SqlCommand;
SqlCommand.CommandText = "storedProd";
SqlCommand.CommandType = CommandType.StoredProcedure;
SqlCommand.Parameters.Add(New SqlClient.SqlParameter("@MyFirstParameter",
[Value As Object]);
SqlCommand.Parameters.Add(New SqlClient.SqlParameter("@MySecondParameter",
[Value As Object]);
SqlCommand.Connection = Conn
SqlDataAdapter DA = new SqlDataAdapter(SqlCommand);
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
[url]www.aboutfortunate.com[/url]
"Out of chaos comes order."
Nietzche
"Shalini Noronha" <shalini_maria@yahoo.com> wrote in message
news:032901c35d19$4e32e630$a301280a@phx.gbl...> Hi
>
> I use a DataAdapter. To which is pass a Stored Proc and
> Connection
>
> SqlDataAdapter DA = new SqlDataAdapter("storedProd",Conn);
> how do i pass parameters to my stored proc
>
> Kindly Help
S. Justin Gengo Guest



Reply With Quote

