I would use a static string here instead of @@VERSION so you're sure what is coming out of r the stored procedure regardless of the underlying database