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
 General SQL Server Forums
 Database Design and Application Architecture
 how to make empty as null

Author  Topic 

DURGESH
Posting Yak Master

105 Posts

Posted - 2008-10-03 : 04:11:44
hi all,
i want to make '' as null
bcoz when my procedure is called from a application the parameters that does not have values will be passed as '' i want to convert it to null.
Is there is any function that make empty as null

thanks in advance
regards
Durgesh J

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-03 : 04:24:03
yup. use NULLIF(@Param,'')
Go to Top of Page

DURGESH
Posting Yak Master

105 Posts

Posted - 2008-10-03 : 05:04:30
Thanks visakh16
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-03 : 05:23:57
welcome
Go to Top of Page
   

- Advertisement -