sql - User defined table in stored procedure -
i trying pass datatable procedure.
i have created sql server user-defined table type below:
create type dbo.dt_simquestionwebtemp table ( [id] [bigint] identity(1,1) not null, [simid] [bigint] not null, [mobile] [nvarchar](25) not null, [levelid] [int] null, [questionid] [int] null, [question] [nvarchar](500) null, [answer1] [nvarchar](100) null, [answer2] [nvarchar](100) null, [answer3] [nvarchar](100) null, [answer4] [nvarchar](100) null, [answer5] [nvarchar](100) null, [status] [int] not null )
i trying drop table create again different schema using below syntax.
drop table dt_simquestionwebtemp
however getting error:
cannot drop table 'dt_simquestionwebtemp', because not exist or not have permission
and have permission drop tables , able use table stored procedure. not able drop or select through normal query.
any idea how see table , drop it?
you need drop type
not drop table
drop type dbo.dt_simquestionwebtemp
Comments
Post a Comment