Viewing 6 posts - 1 through 6 (of 6 total)
VERY interesting! I will give this a whirl and see if it gets me to the happy place. Your example is very close to what I am trying...
September 16, 2009 at 9:29 am
this is a curse. I can't get the cursor to work either.
ALTER FUNCTION [dbo].[fetch_role_options]
(
@ROLEATTRIBID int
)
RETURNS NVARCHAR(MAX)
AS
BEGIN
DECLARE @Out NVARCHAR(MAX)
DECLARE @row NVARCHAR(50)
DECLARE c CURSOR FOR
(SELECT (CONVERT(VARCHAR(MAX),roleattribopt_pk) + ',' +...
September 14, 2009 at 7:49 pm
I guess I am going to have to use a cursor unless someone has a better idea.
September 14, 2009 at 12:15 pm
any ideas on why this only returns a single record?
September 14, 2009 at 8:42 am
thanks a ton benyos.
However, after I created the function, it is only returning the 1st value, not the entire list of items that qualify.
I am getting "1|green" now....
September 13, 2009 at 10:21 pm
thanks a ton! I will give it a whirl right now and see if I can finally put this puppy to bed.
September 13, 2009 at 9:45 pm
Viewing 6 posts - 1 through 6 (of 6 total)