http://web812212621.w2.web335.cn/SQL.aspx
用户名013密码111111,登陆后可以用select * from sysobjects where type='p'看到有
'p_SelSortModeByURL'这个存储过程,但是sp_helptext 'p_SelSortModeByURL'却说没有,看了下数据库一致的,用户角色也是dbowner,郁闷了,高手看看为什么会说没有?
用户名013密码111111,登陆后可以用select * from sysobjects where type='p'看到有
'p_SelSortModeByURL'这个存储过程,但是sp_helptext 'p_SelSortModeByURL'却说没有,看了下数据库一致的,用户角色也是dbowner,郁闷了,高手看看为什么会说没有?
select text from syscomment where id=object_id('p_SelSortModeByURL')
对象名 'syscomment' 无效回2楼
dbcc checkdb ('sqlbfgzs')报错未将对象引用设置到对象的实例>.<回3楼:
我选的库不对吗?我用use sqlbfgzs再运行也包不存在的错,我的登陆字符串这样Initial Catalog=sqlbfgzs;User ID=bfgzs ...
库应该是对的啊。
select text from syscomments where id=object_id('p_SelSortModeByURL')
dbcc checkdb ('sqlbfgzs')报错未将对象引用设置到对象的实例>. < 试下
dbcc checkdb ('sqlbfgzs',REPAIR_ALLOW_DATA_LOSS )
你看那个uid=5
你运行select * from sysusers,能看到5是bfgzs
所以sp名字是bfgzs.SelSortModeByURL,如果光写SelSortModeByURL就默认到dbo.SelSortModeByURL