sql connection handling for sqlcmd2