Handling database connections in a forking server is very difficult to get right. In this case I recommend that you set the InactiveDestroy property on the connection after forking, and then open a new connection to use for any further database interaction. Do not try to continue using a handle opened in the parent process from the child process.