Stephen the Cook wrote: > Judith Barer <> wrote: > >> What would you use in an sql select statement for sql server to >> replace >> empty() function of vfp. I would like to do the following in t-sql >> >> Select items.item_num , iif(!empty(addl_loc_info),.t.,.f.) >> > > Is it null? > > If so you have isNull() or Nullif() > > You will also return False/True or 0/1 for your logical sample above. > > Select ISNULL( addl_loc_info , false ) > >From yourtable >
I don't have BooksOnline locally to reference right now, but isn't there an ISBLANK function that may work as well, or is that just with ASP? -- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.com http://fabmate.com "Work smarter, not harder, with MBSS custom software solutions!" _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.