|
Wersja 680, 0.8 KB
(wprowadzona przez marek, 17 years temu)
|
|
re #161 - merged with latest trunk
|
| Line | |
|---|
| 1 |
|
|---|
| 2 | SET ANSI_NULLS ON
|
|---|
| 3 | GO
|
|---|
| 4 | SET QUOTED_IDENTIFIER ON
|
|---|
| 5 | GO
|
|---|
| 6 |
|
|---|
| 7 | -- =============================================
|
|---|
| 8 | -- Author: <Author,,Name>
|
|---|
| 9 | -- Create date: <Create Date,,>
|
|---|
| 10 | -- Description: <Description,,>
|
|---|
| 11 | -- =============================================
|
|---|
| 12 | ALTER PROCEDURE [dbo].[sp_IsProvisionBlocked]
|
|---|
| 13 | @agencyId int,
|
|---|
| 14 | @year int,
|
|---|
| 15 | @month int
|
|---|
| 16 | AS
|
|---|
| 17 | BEGIN
|
|---|
| 18 | -- SET NOCOUNT ON added to prevent extra result sets from
|
|---|
| 19 | -- interfering with SELECT statements.
|
|---|
| 20 | SET NOCOUNT ON;
|
|---|
| 21 |
|
|---|
| 22 | IF EXISTS(SELECT * FROM dbo.ProvisionSettings WHERE agencyId=@agencyId AND [year]=@year AND [Month]=@month)
|
|---|
| 23 | SELECT IsBlocked FROM dbo.ProvisionSettings WHERE agencyId=@agencyId AND [year]=@year AND [Month]=@month
|
|---|
| 24 | ELSE
|
|---|
| 25 | SELECT 0
|
|---|
| 26 |
|
|---|
| 27 | RETURN
|
|---|
| 28 |
|
|---|
| 29 | END
|
|---|
| 30 | GO
|
|---|
| 31 |
|
|---|
| 32 | SET ANSI_NULLS OFF
|
|---|
| 33 | GO
|
|---|
| 34 | SET QUOTED_IDENTIFIER OFF
|
|---|
| 35 | GO
|
|---|
| 36 |
|
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.