USE [OnTime_Customer_1]
GO
/****** Object: StoredProcedure [dbo].[OnTime_sp_Language_List] Script Date: 07/29/2010 13:00:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[OnTime_sp_Language_List]
@Param_Customer_ID_Ref nvarchar(50),
@Param_Company_ID_Ref nvarchar(50)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SELECT
OnTime_Master.dbo.OnTime_Languages.Language_Name, OnTime_Master.dbo.OnTime_Languages.Language_Culture
FROM OnTime_Master.dbo.OnTime_Languages
INNER JOIN OnTime_Active_Languages
ON OnTime_Active_Languages.Active_Language_Ref_ID = OnTime_Languages.Language_ID
WHERE
OnTime_Active_Languages.Active_Language_Customer_ID_Ref = @Param_Customer_ID_Ref
AND
OnTime_Active_Languages.Active_Language_Company_ID_Ref = @Param_Company_ID_Ref
AND
OnTime_Languages.Language_Active = 1
END
GO |