Problem using Hibernate and SQL Server 2008

后端 未结 3 428
谎友^
谎友^ 2021-01-19 06:34

I\'m having problems using Hibernate and SQL Server 2008. When I try to save an object to database Hibernate throws this:

could not retrieve snapshot: com.my         


        
3条回答
  •  一生所求
    2021-01-19 07:16

    Change the schema to dbo. In SQL Server, schema is a container in the database, not the database itself. This may be different in MySQL, but in this case, your schema should be dbo (based on your comment about it working if you add "dbo." to your resultant query.

    Thanks, Eric

提交回复
热议问题