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 » Really weird problem with writing to SQLServer

Post new topic  Reply to topic
 Really weird problem with writing to SQLServer « View previous topic :: View next topic » 
Author Message
Frik
PostPosted: Thu Jan 17, 2013 2:43 am    Post subject: Really weird problem with writing to SQLServer Reply with quote

Acolyte

Joined: 25 Nov 2009
Posts: 69

In a new Broker, V7.0.0.4 on AIX,
and we are trying to write to SQLServer.

we have set the mqsisetdbparms correctly,
the odbc.ini is in the place,
and etc.

when we are trying to write to the DB, we get the next error message:
error WebSphere Broker v7004[753842]: (Q538MMWB.egInfra)[10025]BIP2322E: Database error: SQL State '22007'; Native Error Code '241'; Error Text '[IBM][ODBC SQL Server Driver][SQL Server]Conversion failed when converting date and/or time from character string.'.

Now, we have a second Broker, on a similar
OS (we checked the version as well), with a Qmgr that is defined exactly like the first one mentioned here, same encoding, same CCSID, same Queue names, and everything else. we checked a lot of things, really. With this Broker we can write to the SQLServer, but with the first one - we get the above bolded error.

BTW - It's the same flow (we checked the bar over and over again),
and a similar broker as well.

Any clues, ideas, something?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jan 17, 2013 2:52 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Are the two ODBC definitions in your ODBC.ini identical as well?

If they are then it might be down to looking at the ODBC trace.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
marko.pitkanen
PostPosted: Thu Jan 17, 2013 3:18 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi Frik,

Simple question came to my mind. Is the insert request ( = values) same in both servers?

--
marko
Back to top
View user's profile Send private message Visit poster's website
McueMart
PostPosted: Thu Jan 17, 2013 3:27 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

Yes it would have been helpful if you could tell us the actual character string which is being inserted into the data/time field.
Back to top
View user's profile Send private message
Frik
PostPosted: Thu Jan 17, 2013 3:55 am    Post subject: Answers Reply with quote

Acolyte

Joined: 25 Nov 2009
Posts: 69

smdavies99 - Yes, are identical. it's the same file which was only copied between servers. Same driver as well.

marko.pitkanen - Yes, it's the same insert, it's the same flow.

McueMart - what do you mean? as far as I know it's UTF-8. where can I check it?
(just remind you that the same flow on the second broker is working, with the same properties)
Back to top
View user's profile Send private message
McueMart
PostPosted: Thu Jan 17, 2013 4:13 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

I.e. Was the Character string you were inserting like '2013-01-17 12:12:00.000' or something else?
Back to top
View user's profile Send private message
Frik
PostPosted: Thu Jan 17, 2013 4:50 am    Post subject: hmm Reply with quote

Acolyte

Joined: 25 Nov 2009
Posts: 69

McueMart - It's look exactly like this.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 17, 2013 4:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

So it's the same flow accepting the same message running on two different brokers and experiencing two different behaviors.

And the brokers are the exact same level and etc. etc. etc - you've said you verified these things.

Take a service trace of the flow on each Broker.

Compare them.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jan 17, 2013 6:07 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Is the data exactly the same or are you passing a string in once case and a timestamp in the other?
_________________
MQ & Broker admin
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 » Really weird problem with writing to SQLServer
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.