Hibernate 3
Hello!
I create a store procedure in SQLServer 2000 call SPINSERT and do the mapping, see:
<sql-insert callable="true">{spinsert ?, ?}</sql-insert>
or
<sql-insert callable="true">{exec spinsert ?, ?}</sql-insert>
or
<sql-insert callable="true">{spinsert (?, ?)}</sql-insert>
or
<sql-insert callable="true">{exec spinsert (?, ?)}</sql-insert>
all the ways it occurs this exception:
Hibernate: {exec spinsert ?, ?}
WARN JDBCExceptionReporter:57 - SQL Error: 0, SQLState: 22019
ERROR JDBCExceptionReporter:58 - Unrecognized SQL escape 'exec' at line position 10.
Obs: To exeute a store procedure on SQLServer I use command "exec" ou "execute", so canĀ“t I use command "call".
If somebody help...
Thanks
|