Converting a Connection to Custom SQL

Version 1