Having issues with statements returning empty sets sometimes, even though it works in the management studio, but this is about all we can get done in the time we have.