1. Giuseppe Luigi Punzi
  2. Valentina Server
  3. Samstag, März 05 2016, 01:32 PM
  4.  Abonnieren via E-Mail
Hi again, I continue with my testing.

I downloaded and installed ODBC from this link http://valentina-db.com/download/prev_releases/5.8.9/win_32/ because was impossible is not in any folder for newer version (1), and not sure, but maybe my problem could be related to this.

I connected my IDE to the database with ODBC. It detects perfectly the table I created, and the fields. From a form I created new records correctly, but when I run it, i don't get any record.

Some idea? Could be related to the ODBC driver version?

(1) http://valentina-db.com/en/discussions/vodbc-6-3-5-downloads-for-windows
Anhänge
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
Ok, I tried with new dirver, and happens the same.

I created another DSN for an Access database, and tried, and works as expected. This means, I think, the problem should be something specific to Valentina ODBC driver.
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
Hello Giuseppe!

Can you provide trace log for VODBC?
This should help us to figure out the problem in the particular case.
Can you try your queries in the Valentina Studio? Whether a difference in result between Valentina Studio and your application?

BTW: you can catch crash in Valentina Studio on executing query with many columns in result. It was fixed in version 6.3.6 (not released yet). So try query with one field in result.
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
You mean from studio but connected by odbc? I cant, due to architecture error AFAIR (odbc is just available as 32b and server is 64b)

how can I trace vodbc?
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
About connecting to VODBC via Valentina Studio:
I have tested the VODBC (x32) on Windows8 (x64) and Valentina Studio (x32).
The Valentina Server placed on remote Mac OS machine (both x64).
So I think you should be able to connect via VStudio without problems too, If not - please tell me your environment configuration.

About ODBC Tracing:
https://support.microsoft.com/en-us/kb/274551
I need a trace for your application on executing query.
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
i will try again the connection from studio amd post exactly the error I got.

About trace, this is what i did and log was not created. I will try again and post results.
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
And tell me please the text of error message on connecting via VStudio.
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
Probably you use VStudio x64, and have got an error for architecture mismatch for VStudio and ODBC Manager (that is x32 for x32 Driver).
If you have some time, you can install x32 version of Valentina studio and try your queries. If no - no problem)
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
Seems like the tool is using AdoDB, for this reason I didn't get any result in log before.

Yes, this is the error I got. With Valentina 32 I can connect and returns rows correctly.
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
What tool do you use? (If this is not a secret)
Kommentar
There are no comments made yet.
Ruslan Zasukhin Akzeptierte Antwort
AdoDB in PHP or this is .NET ?
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
Is not a secret of course. Tool is scriptcase.net a PHP IDE/generator
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
Thanks, we will try it.
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
I'm talking with them to try to get a "connection driver", but don't know if will be done, or when.
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
I have figure out that scripcase uses outdated function SQLExtendedFetch

From docs:

In ODBC 3.x, SQLExtendedFetch has been replaced by SQLFetchScroll. ODBC 3.x applications should not call SQLExtendedFetch; instead they should call SQLFetchScroll.

VODBC designed for ODBC 3.5 so not all functions for earlier standards are supported.

Here an request in our bug tracker to implement this function.
Kommentar
There are no comments made yet.
Yuriy Velichko Akzeptierte Antwort
So, Giuseppe, this is very important for you to use VODBC via scripcase?
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
Hi Yuriy,

Well, I would like to use Valentina as database, and, although I don't have confirmation, seems like a driver will not created by them in short term. This means, if I want to use Valentina as database, I'm forced to use ODBC.
About ODBC problem, they answered and told me there is a problem on scriptcase side marked as bug, but don't know exactly what. Maybe is the same you are talking about.

Said that, the ball is on their roof. And is complicated all this situation for me, because we work with RPI too, and not sure if VODBC will work on it. Probably I will have to use only reports, and not DB capabilities sadly
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello, Giuseppe

As for the Raspberry Pi support - would you like to use VODBC with ScriptCase on RPI, too?
Or what usage scenario?
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
If we don't use Valentina as database I don't need VODBC working on RPI, because I created a PHP library to communicate easily with REST interface and ask for reports. If Netmake solves the ODBC issues, and we migrate our app from mysql to valentina then, obvioulys, as ODBC would be the only way for us to connect to vdatabase, then vodbc on rpi would be needed too, but it's too soon to speak on this until issues are solved correctly.
Kommentar
There are no comments made yet.
Giuseppe Luigi Punzi Akzeptierte Antwort
Yuriy Velichko wrote:

I have figure out that scripcase uses outdated function SQLExtendedFetch

From docs:

In ODBC 3.x, SQLExtendedFetch has been replaced by SQLFetchScroll. ODBC 3.x applications should not call SQLExtendedFetch; instead they should call SQLFetchScroll.

VODBC designed for ODBC 3.5 so not all functions for earlier standards are supported.

Here an request in our bug tracker to implement this function.


Because this people are almost "ignoring" me, and because there are "full compatibility" with mysql functions, there is something I can do to change "valentina_*" methods in API to "mysql_*" and work with MySQL connection of SC as if a MySQL is? Don't know if I explained. I know it's an stupid question, but well, I don't loose anything for asking.

I know this wasn't work, but I just tried to tell SC to connect to Valentina as a MySQL database and obivously I got an:
Connection Error

Connection attempt failed: SQLSTATE[HY000] [2006] MySQL server has gone away

PDO::__construct(): Error while reading greeting packet. PID=16284
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories