Relational view to VB program

Discussions about design and architecture principles, including native JADE systems and JADE interoperating with other technologies
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Relational view to VB program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:29 am

by Shameer >> Thu, 18 Sep 2003 10:29:10 GMT

we have created relational view(RV) for jade DB,and we need to extract the some date from the jade DB(version 5.2) from our VB 6 program.we can able to get the connection to the Jade RV and we can access the tables but we are facing some Peculiar problem :-

Table A :-

amt amtCurrency batchNumber
138.38 0 4
-1252385.45 0 5
-51662.65 0 5


Query:-

query = "SELECT A.amt , A.batchNumber FROM A WHERE batchNumber =5"


VB program using ADO:-

conn.ConnectionString = "DRIVER ={JADE ODBC Driver 5.2};Persist Security Info=False;User ID=sa;DSN=JADERV"
conn.open
rs.Open query, conn, 3, 2

we are geting the resultset with no records in it, when we remove the amt filed from the query like

query = "SELECT A.batchNumber FROM A WHERE batchNumber =5"

we can see the record set with 2 records in it .

This problem occurs if only amt field included in the query,otherwise its fine.

Please suggest .... as we need the amt column in query....while Jade RV creation the amt field/class is included and inside Jade Class amt property is Decimal as mentioned below:-

Name: amt (8)
Class: ABC
Type: Decimal
Access: readonly (0)
non-virtual embedded
Length: 16
Scale Factor: 2


Please help to solve...Thanks in advance ...cheers

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Relational view to VB program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:29 am

by allistar >> Fri, 19 Sep 2003 7:50:08 GMT

Hi there,
that sounds exactly like the issue raised in PAR 31505. We are investigating the issue.

Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Relational view to VB program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:29 am

by Shameer >> Wed, 24 Sep 2003 5:32:07 GMT

Hi Allistar,

Please update on this issue ...

Thanks
Shameer

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Relational view to VB program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:29 am

by allistar >> Wed, 24 Sep 2003 21:41:09 GMT

Hi Shameer,
We haven't gotten to the bottom of it yet.

Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Relational view to VB program

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:29 am

by Rob Owen >> Mon, 12 Jan 2004 23:39:44 GMT

I am having a very similar problem to this. On one system when a field with decimals is extracted using SQL Server it errors out. I had to use Access to create a linked table and then use this to get the data into SQL Server.

In another system the decimal fields are extracted into SQL Server but with the decimal portion truncated.

Different versions of Jade but both problems related to decimal fields.

The only consistent solution appears to be to create a linked table in access and then use this to import the data into SQL Server, for some reason the access calls to the Jade ODBC driver seem to handle decimals whereas the SQL Server calls don't.


Return to “Design and Architecture”

Who is online

Users browsing this forum: No registered users and 18 guests

cron