Home |
Search |
Today's Posts |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
K Dales wrote:
I think there is a fundamental problem with this request: SQL has no boolean data type. Thanks for pointing this out: I don't work directly with T-SQL so I was not aware of this limitation; I did mention that the actual formula would be dependent on the implementation of SQL used. However any formula accepted by T-SQL should work, and I am pretty sure there must be some formula that will yield the proper result. Trying to be sneaky here... Rather than using a SQL Server connection, I instead connected to the workbook, i.e. used a MS Jet connection which *does* support a BOOLEAN data type, then used Jet's ODBC pass-through functionality to connect to the SQL Server table then cast as a Boolean in Jet e.g. SELECT IIF(MyBitCol<0,TRUE,FALSE) FROM [ODBC;DSN=SQLServer_Airplanes].MyTable; No luck, though. MS Query still returned the values to the worksheet as numeric values. Jamie. -- |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert data into proper time format | Excel Worksheet Functions | |||
How do I convert numeric data to string format (without VBA)? | Excel Worksheet Functions | |||
Import csv data and convert to TIME format | Excel Worksheet Functions | |||
How do I convert word data (not in tables) into excel format? | Excel Worksheet Functions | |||
CONVERT DATA TO CURRENCY FORMAT | Excel Discussion (Misc queries) |