Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

temporary user define function

5 views
Skip to first unread message

Eddie_A

unread,
Sep 28, 2011, 10:56:50 PM9/28/11
to
Temporary user define function:

create proc Procecess_NCR_Conversion
as

create function #Number_Format (@NCR_Conversion univarchar(500) )
returns univarchar(500)
as
begin
-- codes that converts NCR to unicode
. . .
end

update mytable
set first_nm = #NCR_Conversion(first_nm)
where first_nm like '%&#[0-9]%;'
go


Eddie_A

unread,
Oct 6, 2011, 11:05:06 PM10/6/11
to
This will be very useful as a sub routine as opposed to creating
nested SP. What do you think?

Correction for above example:

create proc Convert_NCR_to_Unicode
as

create function #NCR_Conversion (@NCR_strings univarchar(500) )
returns univarchar(500)
as
begin -- or use (
-- codes that converts NCR to unicode
. . .
return @NCR_strings
end -- or use )
0 new messages