Hi Stephan Thank you for the prompt reply which is very useful. I note your point on closing the db and have amended the code accordingly. I am read reading through the link you provided regarding the "bind" APIs Do you by any chance have some example code in C or C++ I could look at regarding bind ? Thank you again for your input Kind regards Chazza