dbTalk Databases Forums  

Union All

microsoft.public.sqlserver.mseq microsoft.public.sqlserver.mseq


Discuss Union All in the microsoft.public.sqlserver.mseq forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Maurice
 
Posts: n/a

Default Union All - 07-18-2003 , 02:25 PM







Hi!!

I desperately need help! When I upload the following code to the server
of my provider I receive an unclear error message. I don't have any idea
what I am doing wrong.

This is the code:
SELECT * FROM DB1 WHERE merk = 'Example'
UNION ALL
SELECT * FROM DB2 WHERE merk = 'Example'

This is the error message:
ADODB.Recordset.1 error '80004005'

SQLState: 42000
Native Error Code: 1064
[TCX][MyODBC]You have an error in your SQL syntax.........


Please help me!

Greetings,
Maurice

--
Posted via http://dbforums.com

Reply With Quote
  #2  
Old   
Ray Higdon
 
Posts: n/a

Default Re: Union All - 07-18-2003 , 10:20 PM






Do both tables have the same number and type of columns? If not you can
not use union all.

Ray Higdon MCSE, MCDBA, CCNA

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.