Rory Oconnor wrote: > > Regarding perl DBI - I know it's proper to use $sth->finish and > $dbh->disconnect and I am doing that at the end of my script... > > however, i am also doing alot of error checking at the beginning of the > script (to make sure data has been entered, and formatted properly). If > there's an error I would usually just send back an error message and > exit the script to prevent it from having to run through the rest of it > needlessly. do I need to explicitly disconnect before exiting in those > instances or it it OK to just exit? >
The solution is to not create the handle untill you are ready to talk to the database. Todd W -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]