IF EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[order_217_g_relation]') AND type = 'P')
DROP PROCEDURE [dbo].[order_217_g_relation]
GO
CREATE  procedure order_217_g_relation(@ordid bigint, @useruid int ) as beginset nocount on select ord_id,ord_bizid,ord_bcid,ord_branch,ord_cmpid,ord_createcuid,ord_createdepart,ord_createdpid,ord_creator,ord_date,ord_key,ord_no,ord_status,ord_title,ord_type,ord_updated,ord_dpid,ord_cuid,ord_depart,ord_empname , @useruid ordp_cuid from order_217 where ord_id=@ordid order by ord_date set nocount off end