﻿DECLARE @sql nvarchar(max) = '';

select @sql += 'DROP PROCEDURE [' + ROUTINE_SCHEMA + '].' + ROUTINE_NAME + ';' + char(13) + char(10) 
from INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'sp_GetTanuloOrarend'

EXEC sp_executesql @sql 