473,473 Members | 4,176 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Date Format problem

Hi,

I am fairly new on
UDB.
I am experiencing
a problem with a
VB6 program that
executes a query
that is supposed to
return date values
from a table. The
query returns an
empty result. But
if I execute the
same
query on Command
Center it does
return a
resultset.
The date format on
the table is
mm/dd/yyyy. Does
anyone know what
could be causing
this?

Thanx
Jan 13 '06 #1
4 1350
What version of UDB? What version of the Client? And which ODBC driver
are you using?

B.

Jan 13 '06 #2


You also have a line wrapping problem. Please make your question
readable by setting the line length to at least 60.

Kind regards, Gert
Jan 13 '06 #3
Hi B.,

Here are the details.

Server
DB2 v8.1.9.700 fixpack 9.
IBM DB2 ODBC Driver: version 8.01.09.700

Client:
DB2 UDB version 8.1.0.36 Build s021023
IBM DB2 ODBC Driver version 8.01.00.36

Thanx.
Jan 16 '06 #4
If I understand you correctly, you created a query that returns no data
while run inside your application (VB6), but does return data while run
through command centre on the same PC that you tried the VB6 program
from?

Can you try the query using a third party tool such as MS-Query, or
Access? This will give you a feel for whether your ODBC connection is
fine or not. I'm not sure but you may be connecting via CLI when using
the command centre.

If the ODBC is fine, then you have a VB6 issue. I do not program in
VB6 so I am not sure if it is a compiled program. If so you may have
not bound the resulting .bnd file to your database. Do you have other
VB6 programs that communicate with DB2 ?

If the ODBC is not fine then you must set this up.
Hope this will help you home in on the problem.

Regards,
Richard McCutcheon.
Nana%u wrote:
Hi B.,

Here are the details.

Server
DB2 v8.1.9.700 fixpack 9.
IBM DB2 ODBC Driver: version 8.01.09.700

Client:
DB2 UDB version 8.1.0.36 Build s021023
IBM DB2 ODBC Driver version 8.01.00.36

Thanx.


Jan 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: amith | last post by:
hi I have written javascript for comparing two dates in US format and finding out whether the start date is greater than the end date and vice versa. In this attempt i have instantiated the...
6
by: Dario Di Bella | last post by:
Hi all, we have the following urgent issue affecting our development team. Initially we had one particular workstation that failed executing queries on a DB2 database, raising an invalid date...
3
by: Lyn | last post by:
Hi, I am developing a project in which I am checking for records with overlapping start/end dates. Record dates must not overlap date of birth, date of death, be in the future, and must not...
7
by: James P. | last post by:
Hello there, In my asp.net page using VB, I have a date text field in mm/dd/yyyy format. When a date is entered, I'd like to validate it to make sure the date is greater than or equal to the...
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error through an asp.net custom validator, it is as...
16
by: Mik | last post by:
I apologise if this post seems a little basic, but I am a newbie and have NO access knowledge. I have downloaded the Accounts Ledger from the Microsoft Website. It allows the user to review a...
7
by: creative1 | last post by:
Hello everyone. I am experiencing a strange problem that I can't fix on my own. I think I need expert's suggestions for this. The problem is: I want to print account statement (or any other...
30
by: fniles | last post by:
On my machine in the office I change the computer setting to English (UK) so the date format is dd/mm/yyyy instead of mm/dd/yyyy for US. This problem happens in either Access or SQL Server. In the...
4
by: OzNet | last post by:
I have some functions to calculate the working days in a given period. This includes a table that is queried to calculate the number of public holidays that don’t occur on a weekend. If I test...
11
ollyb303
by: ollyb303 | last post by:
Hello, I am using a dynamic crosstab report to track performance statistics for my company and I have hit a problem. I would like the option to track stats daily (for the last 7 complete...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.