'('索引使用情况统计信息sql server-2008附近的语法不正确 [英] incorrect syntax near ' ( ' index usage statistics sql server-2008

查看:95
本文介绍了'('索引使用情况统计信息sql server-2008附近的语法不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!!!!

我尝试使用DBCC CHECKDB检查数据库的运行状况.它工作正常.但是,当我尝试使用标准报告检查索引使用情况"统计信息或索引物理"统计信息时,它向我显示了此错误.

Hi all!!!

I tried to check database health using DBCC CHECKDB. It works fine. But when i am trying the check Index Usage statistic or index physical statistic using standard reports ,it showed me this error.

incorrect syntax near ''(''



我正在使用sql server2008.
当我检查数据库选项时,它表明它的兼容级别是SQL SERVER 2000(80).
我搜寻了一下,发现我应该考虑将其发布到2005/2008年.这是解决方案吗?如果是这样,我该怎么办???这样做后,我的数据将保持现在的状态,还是会丢失一些数据?我不能冒险丢失数据...请帮助我.



i am using sql server 2008.
when i checked database options it shows that it''s compatibility level is SQL SERVER 2000(80).
I googled and found that i should consider bringing it up to 2005/2008 . Is this the solution?? if so how will i do it??? and will my data will be as it is now after doing it or some data will be lost ?? I can''t take risk of loosing data... please help me.

推荐答案

似乎您已从较低版本升级到SQL Server 2008.兼容性,那么它不会给出此错误

设置为更高的兼容性,请使用以下代码

Seems you have upgraded to SQL Server 2008 from lower version....set the compatibility then it won''t give this error

to set to a higher compatibility use the below code

EXEC sp_dbcmptlevel ''yourDatabaseNameHere'', 100 



sp_dbcmptlevel
上了解更多信息.
如果它回答了您的问题,请标记为解决方案....



Read more on sp_dbcmptlevel

Mark as solution if it anwer your question....


这篇关于'('索引使用情况统计信息sql server-2008附近的语法不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆