Ask a Question related to Microsoft SQL / MS SQL Server, Design and Development.
-
andi #1
IIF/Format equivalent in TSQL
Hi
I have a client application that is currently connecting
to MSAccess via ODBC. It uses the IIF and Format function
in SQL-Statements. I want to migrate to SQL-Server. What
equivalent functions do I have in T-SQL?
thanks
andi Guest
-
How you convert this cfquery to TSQL?
Does anyone know how to convert this cfquery to TSQL? <cfquery name="test" datasource="abcinc"> select * from profiles where 0=0 <cfif... -
How u convert this cfquery to TSQL?
Does anyone know how to convert this cfquery to TSQL? <cfquery name="test" datasource="abcinc"> select * from profiles where 0=0 <cfif... -
Using web services inside TSQL
If you want to call a web service from SQL Server, you need to use the sp_OA* procedures to call the "interop assemblies" for the .NET web service.... -
Is it possible to do this using TSQL instead of cursor ??
I have a Tagdataminutely table with columns TagKey, datetime, Value, Quality and Rev. TagKey is not a primary key in this table, in fact this table... -
Please improve this TSQL algorithm ..
Hi SQL Gurus, I have a big batch process in a stored procedure, i.e : a payroll process to calculate salary and all allowance should be received by... -
Anith Sen #2
Re: IIF/Format equivalent in TSQL
There is no IIF in SQL Server, you'll have to use CASE expression & perhaps
CONVERT and other string functions instead of FORMAT.
--
- Anith
( Please reply to newsgroups only )
Anith Sen Guest
-
Russell Fields #3
Re: IIF/Format equivalent in TSQL
See CASE in the BOL for IIF
See CONVERT or CAST for Format. (If I understand Format correctly.)
Russell Fields
"andi" <andi@nospam.com> wrote in message
news:0b1701c33fd2$49f45fe0$a301280a@phx.gbl...> Hi
>
> I have a client application that is currently connecting
> to MSAccess via ODBC. It uses the IIF and Format function
> in SQL-Statements. I want to migrate to SQL-Server. What
> equivalent functions do I have in T-SQL?
>
> thanks
Russell Fields Guest
-
Vishal Parkar #4
Re: IIF/Format equivalent in TSQL
see help on CASE function in BOL. it does the conditional matching of the
resultset.
--
-Vishal
"andi" <andi@nospam.com> wrote in message
news:0b1701c33fd2$49f45fe0$a301280a@phx.gbl...> Hi
>
> I have a client application that is currently connecting
> to MSAccess via ODBC. It uses the IIF and Format function
> in SQL-Statements. I want to migrate to SQL-Server. What
> equivalent functions do I have in T-SQL?
>
> thanks
Vishal Parkar Guest
-
Aaron Bertrand - MVP #5
Re: IIF/Format equivalent in TSQL
Some info here:
[url]http://www.aspfaq.com/2214[/url]
[url]http://www.aspfaq.com/2460[/url]
[url]http://www.aspfaq.com/2464[/url]
"andi" <andi@nospam.com> wrote in message
news:0b1701c33fd2$49f45fe0$a301280a@phx.gbl...> Hi
>
> I have a client application that is currently connecting
> to MSAccess via ODBC. It uses the IIF and Format function
> in SQL-Statements. I want to migrate to SQL-Server. What
> equivalent functions do I have in T-SQL?
>
> thanks
Aaron Bertrand - MVP Guest
-



Reply With Quote

