The error is caused by the following operation
select @@ROWCOUNT + ' Records sucessfully imported'
@@ ROWCOUNT is an integer, so first convert to a string.
select convert(varchar(10),@@ROWCOUNT) + ' Records sucessfully imported'
EDIT: This is a bug, but it looks like this bug will be caught as a trick, so you should have another compile-time error causing the problem.
source share