Hi,

Thank you for the info about the memory leak I will have a look into that.

The reason why I know it is not disconnecting is if I go into Microsoft SQL Management Studio and try to detach the database it warns me that there is still 1 connection. I have attached a small sample project to illistrate.

Really don't understand why this is not releasing the connect.

Any help would be great

Thanks

SimonDisconnect.zip