Hi
I can't seem to get this procedure to work correctly. Here's my code:
DECLARE @PropertyDetail s nvarchar (6)
Select @PropertyDescri ption = PropertyDescrip tion from Property where
ApplicationID = @applicationid
If @PropertyDescri ption is not null or @PropertyDescri ption <> ''
Begin
If (select isnumeric(Prope rtyDescription) from Property where ApplicationID =
@applicationid) = 1
INSERT INTO #errors VALUES (1410,@Applicat ionID, 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
I can't seem to get this procedure to work correctly. Here's my code:
DECLARE @PropertyDetail s nvarchar (6)
Select @PropertyDescri ption = PropertyDescrip tion from Property where
ApplicationID = @applicationid
If @PropertyDescri ption is not null or @PropertyDescri ption <> ''
Begin
If (select isnumeric(Prope rtyDescription) from Property where ApplicationID =
@applicationid) = 1
INSERT INTO #errors VALUES (1410,@Applicat ionID, 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
Comment