|
-
February 27th, 2008, 12:17 AM
#1
Ado.net using IDBCommand
How can I use the stored procedure with the help of IDBCommand to save my new record in the database.
-
February 27th, 2008, 12:21 AM
#2
Re: Ado.net using IDBCommand
Please send me the answer with example using IDBCommand.
-
February 27th, 2008, 02:14 AM
#3
Re: Ado.net using IDBCommand
 Originally Posted by jaineeshthakur
How can I use the stored procedure with the help of IDBCommand to save my new record in the database.
Your question is somewhat incomplete. What database are you talking about? And how are you connecting to this database. What does this stored procedure return?
-
March 13th, 2008, 01:56 PM
#4
Re: Ado.net using IDBCommand
I think you could probably do something like this.....
Code:
string connectionString = <your Connection String>;
//Right here your connection type could be anything OleDb, Odbc, etc
IDbConnection conn = new SqlConnection(connectionString);
IDbCommand cmd = conn.CreateCommand();
cmd.CommandText = <your Stored Procedure>;
cmd.CommandType = CommandType.StoreProcedure;
//Add your parameters to the stored procedure
cmd.ExecuteNonQuery();
Is that what you are looking for????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|