I did a stored procedure to delete a table if it exists that is passed by parameter, this is my code:
create procedure CrearTabla
@Tabla varchar (100)
as
if OBJECT_NAME(@tabla) is not null
begin
drop table @tabla
end
go
But it does not work for me. Could you give me a hand? Thank you very much!