there is no "simple" solution I can give you.. there is a thousand of diferents ways to approach something like this.. you are not even telling us the database or the language.. just use google.. you will found what you need there...
For example.. you are looking code for what?? opening a conection? opening a dataset? recordset? do you even know how to handle this things??
HTH
Gonzalo
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========