Login  Register 
Home
 
Applications
 
Consulting
 
Design
 
Business Links
 
Support
 
Contact
  Search
Search
 
 SupportKnowledge BaseMicrosoft SQL ServerStored Procedures     May 17, 2012  
Snippets
21

Within a stored procedure use an IF STATEMENT to check a parameter for a NULL VALUE

if( @CustomFieldID is null)
begin
   print 'NULL VALUE - SKIP IT'
end
else
begin
 print 'PARAMETER HAS VALUE'

end

Posted in: Stored Procedures

Post Rating

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.
 

P.O. BOX 2342 ~ BREWSTER, MA 02631
PHONE & FAX: (508) 714-0678

 
 Copyright 2012 by Global Internet Business Solutions   Terms Of Use  Privacy Statement