Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does the Sql Server ODBC not support unions ?

Status
Not open for further replies.

Karen99

Programmer
Aug 5, 2003
113
ZA
I am using D7 and Sql Server 2000. I use BDE components and connect through the ODBC.

I have a TQuery where my sql statement looks like this :

Select cola
from taba
union
Select colb
from tabb

I get a error that this cappability is not supported. Does the Sql Server ODBC not support unions ? Why not ? How do I get around this. I know ADO work, but the application I am working on is already a few years old and everything is in BDE. Would be to big a job to change everything to ADO.

Any suggestions ?

Karen
 
You haven't stated what the error message actually says but I think it is the BDE that doesn't support unions.

I don't have SQL Server so I can't verify this.

Andrew
Hampshire, UK
 
Well, the same query works through the BDE with Paradox. It is just strange that it will work with Paradox and not Sql Server.

Error message is :

Project IMQS.exe raised exception class EDBEngineError with message 'Capability not supported Token: UNION'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top