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