首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

为什么要在子查询的系统表前面加上dbo呢解决方案

2012-01-26 
为什么要在子查询的系统表前面加上dbo呢ifexists(select*fromdbo.sysobjectswhereidobject_id(N [dbo].[u

为什么要在子查询的系统表前面加上dbo呢
if   exists   (select   *   from   dbo.sysobjects   where   id   =   object_id(N '[dbo].[usp_Getall] ')   and   OBJECTPROPERTY(id,   N 'IsProcedure ')   =   1)
drop   procedure   [dbo].[usp_Getall]

为什么要在子查询的系统表前面加上dbo呢?比如说:dbo.sysobjects   这是为什么啊!

[解决办法]
表的所有者

热点排行