2015-12-02 2 views
0

Я получаю ошибку INFO: HHH000262: Table not found: hibernate_sequence , что не так, поскольку таблица существует в моей базе данных и может быть видна из визуальной студии. Но все же он жалуется? Что может быть проблемой.База данных Azure SQL, hibernate -Table не найдена: hibernate_sequence

Я использую org.hibernate.dialect.SQLServer2008Dialect как мой диалект.

Driver 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 

Я не знаю, куда идти отсюда об этой проблеме. Я много искал и не мог найти или правильно понять проблему и решение.

Любая помощь приветствуется.

ответ

0

Ее первый выстрел в темноте (делать немного больше исследований) Убедитесь, что вы используете имя схемы в передней части имя_таблицы

select * from youruser.hibernate_sequence 
+0

Я не уверен, что пользователь я должен использовать, мой лазурный пользователь ? (он содержит недопустимый символ '!'). Если я просто запустил select * из hibernate_sequence, он возвращает «next_ val» – PushALU

+0

my Schema is dbo, doh. Ну выберите * из dbo.hibernate_sequence, также возвращает «next_val». – PushALU

+0

Попробуйте добавить dbo. к имени вашей таблицы, чтобы убедиться, что нет сопоставления на учетной записи thst –

Смежные вопросы