Does JPA 2.0 support SQL Server table variables?

时光怂恿深爱的人放手 提交于 2019-11-29 08:47:35
gbn

Random thought: Try adding SET NOCOUNT ON.

Your code

insert into @t
    select cast(getdate() as varchar(60))

select * from @t

...will return this

(1 row(s) affected)
id          test
----------- --------------------------------------------------
1           Jun 14 2011  3:58PM

(1 row(s) affected)

There are actual three result "items" from SQL Server. The first has no assoicated result set.

... and a shameless plug of my question SET NOCOUNT ON usage where breaking ORMs and such is mentioned because of this

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!