0
我得到錯誤INFO: HHH000262: Table not found: hibernate_sequence
這是奇怪的,因爲表存在我的數據庫中,可以從Visual Studio中看到。但它仍然抱怨?什麼可能是這個問題。Azure SQL數據庫休眠 - 表找不到:hibernate_sequence
我用org.hibernate.dialect.SQLServer2008Dialect
作爲 我的方言。
驅動com.microsoft.sqlserver.jdbc.SQLServerDriver
當我設置<property name="hbm2ddl.auto">create</property>
創造,我得到關於hibernate_sequence的一些其他錯誤:
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values (1)
Hibernate: insert into hibernate_sequence values (1)
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values (1)
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
Hibernate: insert into hibernate_sequence values (1)
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values (1)
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
Hibernate: insert into hibernate_sequence values (1)
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: HHH000389: Unsuccessful: insert into hibernate_sequence values (1)
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport perform
ERROR: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again.
dec. 02, 2015 6:04:51 PM org.hibernate.tool.hbm2ddl.SchemaExport execute
我真的不知道從哪裏何去何從這個問題。我一直在尋找很多,無法找到任何或正確理解問題和解決方案。
任何幫助被讚賞很多。
我不知道哪些用戶應該使用,我蔚藍用戶? (它包含無效的char'!')。如果我只是從hibernate_sequence運行select *,它會返回「next_val」 – PushALU
我的Schema是dbo,doh。那麼select * from dbo.hibernate_sequence也會返回「next_val」。 – PushALU
嘗試添加dbo。添加到您的表名中,以確保帳戶上沒有映射 –