Viewing 9 posts - 1 through 9 (of 9 total)
Here is my execution plan:
April 5, 2012 at 12:28 pm
So, basically, that would cut my UDF calls in half. A good idea.
April 5, 2012 at 12:19 pm
Yes. Let's say the data is already encoded, due to some recent application changes to how it is inserted into the database.
Now, the value passed into the...
April 5, 2012 at 11:54 am
I have now posted the stored procedure and the two functions.
April 5, 2012 at 11:30 am
Here is the fnHTMLEncode UDF:
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE FUNCTION [dbo].[fnHTMLEncode]
(
@String varchar(8000)
)
RETURNS varchar(8000)
BEGIN
SET @String = ISNULL(@String, '')
DECLARE @HTMLEncodedString varchar(8000)
SELECT @HTMLEncodedString = ''
SELECT @HTMLEncodedString = @HTMLEncodedString +
...
April 5, 2012 at 11:29 am
Here is the fnHTMLDecode UDF:
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE FUNCTION dbo.fnHTMLDecode
(
@String varchar(8000)
)
RETURNS varchar(8000)
BEGIN
DECLARE @HTMLDecodedString varchar(8000)
SELECT @HTMLDecodedString = ISNULL(@String, '')
DECLARE @ix int, @iy int, @pos...
April 5, 2012 at 11:27 am
Here is the stored procedure that validates the student credentials. I will be posting the UDF's shortly, once I clean them up to look nice.
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS...
April 5, 2012 at 11:21 am
It's on its way. I'm sorry for the delay but I'm setting up another test or two in the interim.
April 5, 2012 at 10:20 am
I mentioned in the question that I am using SQL 2000. Unfortunately, PERSISTED is not available in SQL 2000. It wasn't introduced until 2005+.
April 5, 2012 at 10:11 am
Viewing 9 posts - 1 through 9 (of 9 total)