1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27:
USE [CopyOf_Bidtracer] GO /****** Object: UserDefinedFunction [dbo].[sf_CalendarsFoldersView] Script Date: 08/20/2010 15:34:08 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO Create FUNCTION [dbo].[sf_CalendarsFoldersView] ( -- Add the parameters for the function here @BidID varchar(35), @companyID varchar(25), @IntCount int, @returnvalue INT, @returnstring varchar(25) ) RETURNS INT AS BEGIN SELECT @returnvalue = dbo.sf_ReturnFolderCount(@BidID,@companyID, 'Plans' ) IF @returnvalue > 0 SET @ReturnString = '<img alt = "cal-Plan" scr = "">' ELSE SET @ReturnString = '' END RETURN @ReturnString