if object_id('V_GetUserTreeId') is not null
drop table V_GetUserTreeId
CREATE TABLE [V_GetUserTreeId] (
[RoleID] int NOT NULL,
[UserName] varchar(200) NOT NULL,
[TreeID] varchar(200),
[UserID] int NOT NULL
)
------解决方案--------------------
SQL code
if object_id('V_GetUserTreeId') is not null
drop table V_GetUserTreeId
CREATE TABLE [V_GetUserTreeId] (
[RoleID] int NOT NULL,
[UserName] varchar(200) NOT NULL,
[TreeID] varchar(200),
[UserID] int NOT NULL
)
------解决方案--------------------
SQL code
SELECT NAME FROM SYSOBJECTS WHERE NAME='V_GetUserTreeId'
------解决方案--------------------