フィルターのクリア

Identical SQL query produces different result on two PCs

2 ビュー (過去 30 日間)
Jakob B. Nielsen
Jakob B. Nielsen 2022 年 3 月 1 日
回答済み: Dinesh 2023 年 11 月 17 日
Hey MathWorks Community!
I have a Matlab script which I cant share in exact detail with you in detail due to confidentiality, but it is basically just an SQL query, with no filters.
I have recently gotten a new work PC. I still have the old one, but will have to give it back shortly. I have made sure they are parrallel - MATLAB 2020b are installed on both, Database Toolbox 10.0 are included on both, and the data sources are configured in the same way on both.
Running the code on my old PC produces the result I expect, I get data out just fine, from 2018 through to today.
However, running the exact same code (and I know it's the same code since its on a network drive) on the new PC and a lot of the data is missing. I get identical data from 2018-June 2020, but all data from June 2020 through to today, which are correctly returned on the old PC, is simply just missing on the new PC.
Has anyone experienced something like this before? I am completely at a loss here... Same code, different results.

回答 (1 件)

Dinesh
Dinesh 2023 年 11 月 17 日
Hi Jakob.
I understand that you have the same MATLAB version, same Database Toolbox version and that you are executing the same piece of code that connects to the same database.
Here are some reasons why you could run into this issue:
  1. SQL Server side configuration might prevent some IP addresses to access the data behave differently based on the client's characteristics.
  2. Different JDBC or ODBC driver versions in the two PCs can lead to some differences.
  3. Even though the MATLAB version and the Database toolbox version are same, the Java version or the settings within MATLAB's Java version might be different.

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by