
iif not recognize with SQl Server using OLE DB
Yoni,
As Vlad has posted, IIF is Access specific. The SQL Server, and ANSI SQL
standard, equivalent is the CASE statement which is documented in the SQL Server
7.0 Books Online.
Also, in the future please do not cross-post quite so extensively. Please limit
yourself to one or two newsgroups, and please try to target them a bit more
selectively. For example, I fail to see the relevance of
microsoft.public.vb.control.databound to your question.
---------------------------------------------------------------
BP Margolin
Please reply only to the newsgroups.
When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc) which can be
cut and pasted into Query Analyzer is appreciated.
Quote:
> I am designing a query using OLE Db and SQL Server
> When using the iif function I get an error says :"iif is not a recognize
> function name".
> When using Jet 4.0 with access the iff function works good.
> Can someone help?
> mail me to: