IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[order_47_2_download]') AND type = 'P')
DROP PROCEDURE [dbo].[order_47_2_download]
GO
CREATE  procedure order_47_2_download(
@cmpid int ,
@ordid bigint) 
as 
begin 
set nocount on
select * from order_47_2 order by ord2_order , ord2_id 
set nocount off 
end