What is the wrong in the below statment? I am getting an error...Please help me out.
" if exists (select id from abc where id = '" +@[User::idvar]+" and '" +@[User::ptvar]+"' )
begin
declare @aid int
set @aid=(select id from abc where id = '" +@[User::idvar]+"' and '" +@[User::ptvar]+"')
delete from abc where id=@aid
go
"