当前位置:首页 > 技术问答集
firefox

存储过程与用户问题

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

我在sql企业管理器里这样建立了存储过程:  
  creat   jinlei.hr_table  
  select   *   from   table  
  go  
   
   
  使用isql       用   用户   jinlei   登陆    
   
  然后   execute   hr_table      
  总是提示说   在数据库里   过程   hr_table   不存在     ,怎么会事,郁闷啊,请大虾帮忙..

· 网友精彩回答:

发表者:wgsasd311

execute   hr_table      
  ===>  
  execute   jinlei.hr_table      
 

发表者:631799

creat   procedure   jinlei.hr_table  
  as    
  begin  
  set   nocount   on  
  select   *   from   table  
  end  
  go  
   
  --执行  
  exec   jinlei.hr_table   --指定存储过程的所有者

.
© 2006-2008 All Rights Reserved