There is very little difference between using stored procedures versus standard text queries. usually, the only thing you need to do different (aside from the obvious of writing in the full query) is to set the command object commandtype to Text instead of StoredProcedure. Otherwise, the rest is the same. Provide a full query. It can include parameters (@someFieldValue) so you can use the parameters collection in the same way as you use parms in stored procedure calls (with the exception of output parameters).
Peter
-------------------------
Work smarter, not harder