Hi Mike
Good suggestion about the hash #
I did this and the script worked i received the email attachment, good call
create table tempdb..test ( A char(1))
insert into tempdb..test values ('A')
select * from tempdb..test
drop table tempdb..test
go > $file
EOF
/usr/bin/uuencode $file $file | /usr/bin/mailx -s "TEST" "joe.blogs@hotmail.com"
So conclusion:
Dont put hash into your EOF file???