What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
Answer / Ansa Christopher Raj
To call a stored procedure using ADO, you can use the Command object with the command type set to adCmdStoredProc. Here's an example:
1. Create a new Connection object.
2. Open the connection.
3. Create a new Command object based on the open connection.
4. Set the command text to the stored procedure name, and set the command type to adCmdStoredProc.
5. Optionally, add parameters using the Parameters collection of the Command object.
6. Execute the command and process the results."
For RDO, the process is similar:
1. Create a new Connection object.
2. Open the connection.
3. Create a new Recordset object based on the open connection.
4. Set the recordsource property to the stored procedure name.
5. Optionally, add parameters using the Parameters collection of the Recordset object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the difference between sqlcommand object and command behavior object?
Which parameter of ConnectionString is used to specify the name of the database?
How many major types of connection objects in ADO.NET?
What are the types of databinding?
ADO.NET is Disconnected Architecture. DataReader is connected Architecture, but DataReader is a part of ADO.NET. How is it possible?
What are ado.net objects?
What is datacolumn and how it is used?
How do you update a dataset in ado.net?
Which object holds only data and does not interact with data source?
Is entity framework better than ado.net?
Define isolation?
How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)