sub CheckForImageReferencesInSQL { my($server, $username, $password, $DB) = @_; use MSSQL::Sqllib;