ADO and access Prepared query

amit_m04

Member
Joined
Nov 3, 2009
Messages
8
Programming Experience
Beginner
Hi

i have created a table in access and also have created a query using query wizzard which takes a parameter.
is it possible to use that query in ADO, so that i dont have to write the SQL statement again..

please help me in this..
 
First up, you'd use ADO.NET in VB.NET, not ADO.

To answer your question, yes you can. When you create an OleDbCommand, by default its CommandType property is Text and its CommandText property is expected to contain SQL code. You can set the CommandType to StoredProcedure and then assign the name of your query to the CommandText.
 
could you please give me an example of this..
i have just started with .net past 2 days... is there any book that you would reffer..
 
Back
Top