iif not recognize with SQl Server using OLE DB 
Author Message
 iif not recognize with SQl Server using OLE DB

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:



Thu, 06 Feb 2003 03:00:00 GMT  
 iif not recognize with SQl Server using OLE DB
Yoni,

IIF is MS Access specific function and doesn't work on SQL Server.
I don't know, maybe there is a similar function on SQL Server, but I didn't
need it till now, so I'm not familiar with it. Try to look for some help in
MSDN or SQL Server Books Online.
It will be great if you could share me with the results of your search.

Good luck.
Vlad A.


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:




Thu, 06 Feb 2003 03:00:00 GMT  
 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:




Thu, 06 Feb 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. iif not recognize with SQl Server using OLE DB

2. SQL-OLE doesn't recognize SQL Server version

3. Can not find SQL Server (I'm not using SQL Server)

4. OLE DB in sql - server using asp

5. Constant login requests using OLE DB to SQL Server with CRD 8

6. Visual Basic App using Foxpro DB vs Access DB vs SQL Server DB

7. Visual Basic App using Foxpro DB vs Access DB vs SQL Server DB

8. VB6 application using SQL Server 2000 migrating db to SQL Server 2

9. VB not recognizing RAISEERROR (SQL Server)?

10. SQL Server 7, OLE DB and VB 6

11. ADO - OLE DB - ODBC - SQL Server

12. OLE DB Provider for SQL Server Message and COM Message

 

 
Powered by phpBB® Forum Software