ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » T.* not Working in SQL Access

Post new topic  Reply to topic
 T.* not Working in SQL Access « View previous topic :: View next topic » 
Author Message
Siddu
PostPosted: Thu Dec 06, 2012 2:57 am    Post subject: T.* not Working in SQL Access Reply with quote

Apprentice

Joined: 22 Aug 2012
Posts: 44

Hi All,
I'm trying to access all the columns of a particular row from Database.

When I query like:
SET Environment.XMLNSC.AppResult[] = (SELECT T.* FROM Database.{DSNNAME1}.{DBSCHEMA1}.{DBTABLE1} AS T WHERE T.employeeID = Environment.Temp.TMID);
It's not fetching any records from row. However when I specify likr:
SET Environment.XMLNSC.AppResult[] = (SELECT T.employeeID,T.sAMAccountName,T.mail,T.postOfficeBox FROM Database.{DSNNAME1}.{DBSCHEMA1}.{DBTABLE1} AS T WHERE T.employeeID = Environment.Temp.TMID);

It's fetching the required columns.

What's wrong in specifying T.* ?

Is there any other way to access all columns of particular row.

I'm working on Broker Version 7.0.0.3
_________________
"Be honest. It is one of the few things that you can control in your life."
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Dec 06, 2012 5:57 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Use Passthru if the native SQL supports *.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
kash3338
PostPosted: Thu Dec 06, 2012 8:12 am    Post subject: Re: T.* not Working in SQL Access Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Siddu wrote:
What's wrong in specifying T.* ?

Is there any other way to access all columns of particular row.


There is nothing wrong in specifying T.* until you are querying the default database (that is the database to which the DSN points to in your node).

Are you accessing the database which your nodes DSN points to?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » T.* not Working in SQL Access
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.