http://web812212621.w2.web335.cn/SQL.aspx
用户名013密码111111,登陆后可以用select * from sysobjects where type='p'看到有
'p_SelSortModeByURL'这个存储过程,但是sp_helptext 'p_SelSortModeByURL'却说没有,看了下数据库一致的,用户角色也是dbowner,郁闷了,高手看看为什么会说没有?

解决方案 »

  1.   

    --看是否存在
    select text from syscomment where id=object_id('p_SelSortModeByURL')
      

  2.   

    回1楼:
    对象名 'syscomment' 无效回2楼
    dbcc checkdb ('sqlbfgzs')报错未将对象引用设置到对象的实例>.<回3楼:
    我选的库不对吗?我用use sqlbfgzs再运行也包不存在的错,我的登陆字符串这样Initial Catalog=sqlbfgzs;User ID=bfgzs ...
    库应该是对的啊。
      

  3.   

    什么方面的问题呢?我用sql是可以运行的,就是不能用sp
      

  4.   

    是否要给db.dbo.p_SelSortModeByURL才行
      

  5.   

    --寫錯了
    select text from syscomments where id=object_id('p_SelSortModeByURL')
      

  6.   

    回2楼 
    dbcc checkdb ('sqlbfgzs')报错未将对象引用设置到对象的实例>. < 试下
    dbcc checkdb ('sqlbfgzs',REPAIR_ALLOW_DATA_LOSS )
      

  7.   

    运行select * from sysobjects where type='p'
    你看那个uid=5
    你运行select * from sysusers,能看到5是bfgzs
    所以sp名字是bfgzs.SelSortModeByURL,如果光写SelSortModeByURL就默认到dbo.SelSortModeByURL