Solve
It was the compatible of the database that cause the problem. It run ok with database that compatible with sql server 2005 (90) and produce error with database that compatible with sql server 2008 or above. All I need to do is change to compatible of database to 2005