Effacer les filtres
Effacer les filtres

Very Strange addition in Sybase SQL statement running from MATLAB

3 vues (au cours des 30 derniers jours)
Tareq Rahmani
Tareq Rahmani le 10 Fév 2021
Hi all
I am telling some strange behavior. I am trying to run SQL Sybase Query . and I am capturing the communication between my MATLAB program on laptop and the destination Sybase Server using the protocol Analyzer . See now what the MATLAB program is sending to the DB Server : the below is what I captured during MATLAB code execution
That means that the MATLAB Client where my code is running is sending those comands enclosed in the blue below. Here is my code
jdbcString = 'jdbc:jtds:sybase://14.29.44.4:29887';
jdbcDriver = 'com.sybase.jdbc4.jdbc.SybDriver' ; %%'net.sourceforge.jtds.jdbc.Driver';
dbConn = database('' , 'nethouse' , 'AdsCmonps__2016' , jdbcDriver , jdbcString );
db_query = 'SELECT table_name AS ETARIRA From SYSTABLE';
data=fetch(dbConn,db_query);
close(dbConn);
Really very strange : is this caused by the JDBC driver or is it a bug in MATLAB ??
aCTUALLY , my target is i want to run query using MATLAB and get the result !! Simply that

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by