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