当我尝试登录sitecore时,对象名称'EventQueue'无效

时间:2012-03-27 09:24:47

标签: asp.net sitecore sitecore6 sqlexception

有人可以帮忙吗?我可以看到sitecore登录页面,但是当我尝试登录时,出现错误

"Invalid object name 'EventQueue'. "

异常详情为System.Data.SqlClient.SqlException: Invalid object name 'EventQueue'

提前致谢。

3 个答案:

答案 0 :(得分:1)

您最近是否升级了解决方案?如果是这样,你使用DBCT工具吗?如果是这样,您应手动创建“通知”和“EventQueue”表,因为在数据库转换后会丢失这些表。您可以在SDN上找到要执行此操作的SQL查询。

答案 1 :(得分:1)

您的数据库版本与Sitecore版本不符。

EventQueues表在Sitecore 6.3中引入,并通过此处的SQL脚本添加:http://sdn.sitecore.net/upload/sdn5/products/sitecore6/updates/sitecorecms630.zip

如果您的Sitecore版本最近升级,则说明未正确完成,可能会出现更多问题。所以我真的会想到那里出了什么问题,也许重新开始。

答案 2 :(得分:0)

检查以确保未在其他架构下创建EventQueue表。在下面显示的示例中,EventQueue表不像其他表那样位于dbo架构下。如果dbo架构下的sql用户执行select查询,则会导致Invalid Object name无效,因为查询中的表名不以架构为前缀。

SELECT * from EventQueue返回无效的对象名称

SELECT * from sitecore.EventQueue投放

要解决此问题,请将EventQueue表更改为dbo架构的一部分,或者确保sql用户具有正确的默认架构。在我们的示例中,当我们将sysadmin角色添加到sql用户时,会出现此错误。 When sql users are assigned to the sysadmin role, the default schema is ignored and the default schema becomes dbo.具有讽刺意味的是,添加权限会导致问题。

EventQueue table does not have the dbo schema