Hi Experts,When applying this function in SQL server 2000:USE [DBS]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE FUNCTION [dbo].[@PADL]( -- Add the parameters for the function here @Val nvarchar(4000), @PadChar nvarchar(1), @Length int)RETURNS nvarchar(4000)ASBEGIN -- Return the result of the function RETURN replicate(@PadChar,@Length-len(@Val)) + @ValEND
I've got error message : "stored procedure definition must include name and text (for standard stredprocedure) or libraryname (for extended storedprocedure)"Pls give advice how to resolve this problem. I appreciate your reply.Rgd,Alonso