Hi
I can't seem to get this procedure to work correctly. Here's my code:
DECLARE @PropertyDetails nvarchar (6)
Select @PropertyDescription = PropertyDescription from Property where
ApplicationID = @applicationid
If @PropertyDescription is not null or @PropertyDescription <> ''
Begin
If (select isnumeric(PropertyDescription) from Property where ApplicationID =
@applicationid) = 1
INSERT INTO #errors VALUES (1410,@ApplicationID, 0, 'Y')
ELSE
INSERT INTO #errors values (1410, @ApplicationID, 0, 'N')
End
I am trying to bring up an error advising users not to capture alphabets in a
field called Property Description.
I need to bring up the error from the #ERRORS table with the rule number 1410.
My Syntax checks successful, but my error does not come up for the users. Am
I missing something?
Thanks for any help at all, guys.
Driesen Pillay
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...neral/200508/1