I have a SQL Server function that returns a scalar BIT value and takes one parameter. Following is the idea:
CREATE FUNCTION dbo.[fnTest] (@StringToTest VARCHAR(10))
RETURNS BIT
AS
BEGIN
DECLARE @b BIT
IF @StringToTest = 'A' SET @b = 0 ELSE SET @b = 1
RETURN (@b)
END
GO
Being very new (days!) For SubSonic - what would you call it with SubSonic?
(I use a website with the base file "subsonic.abp" with an asterisk in it).
source
share