Changing datasource programmatically

You do understand that people are trying to help you? So if digging into the minutiae bothers you then we wont be able to help you.