Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 NULL value check

Author  Topic 

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-09-02 : 17:07:35
I have a trigger and inbetween there is a If statement which creates problem.without the 'if' it works.But I want a check needed in the trigger

SELECT @emp_id=emp_number FROM inserted

IF @emp_id <> NULL

BEGIN

-----
-----
End

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-09-02 : 17:09:17
IF @emp_id IS NOT NULL

Tara
Go to Top of Page

sqllearner
Aged Yak Warrior

639 Posts

Posted - 2004-09-02 : 17:11:43
Thanks Tara,It works !!!!
Go to Top of Page
   

- Advertisement -