親愛なるみんな、
私はデータベース クエリをカスタム SQL と組み合わせてよく使用します。 下記のような3つの方法があると思います。
私は「新しい SQL クエリ」が最も気に入っています。これは、最も強力で安全だからです (パスワード ... を参照)。
残念ながら、ODBC 接続文字列の非表示に関する動作は JMP17 で変更されましたが、修正される予定です。
「ODBC 接続文字列を非表示にする」設定での JMP17 の動作: 接続文字列... - JMPユーザーコミュニティ
シッチェスで開催された Discovery Summit Europe の開発者から聞いたところによると、新しい SQL クエリというメソッドが推奨されており、より安定していて、他のメソッドは両方とも時代遅れだそうです。 しかし、速度に問題があるとも聞きました。 ここでは、この推奨事項についてもドキュメントでも読んだことがありません。
次のことについて話し合いたいと思います。
どのような方法を使用しますか?またその理由は何ですか?
そして、どんな経験をしましたか?
よろしくお願いします、
ゲオルグ
Names Default To Here( 1 );
// 3 different ways for database access
// constants
sql_str = "select * from Dual"; // this works on all Oracle DB's
// needs to be adapted to your database<BR />cnx_str ="DSN=MYDSN_NAME;UID=USERNAME;PWD=PASSWORD";
// new sql query needs connection string starting with "ODBC:"
// there is no good documentation in the manual (scripting guide and JMP Help)
qry_obj = New SQL Query( query name("New SQL Query"), connection( "ODBC:"||cnx_str ), custom sql( sql_str ) );
dt_sqlquery = qry_obj << run foreground();
// open database is a oneliner
// with "Hide ODBC connection string" not set, it saves the plain password into the table scripts
dt_open = open database(cnx_str, sql_str, "Open Database");
// expecute sql needs the database opened before sending statements
// with "Hide ODBC connection string" not set, it saves the plain password into the table scripts
dbc=create database connection(cnx_str);
dt_execute = execute sql(dbc, sql_str, "Execute SQL");
close database connection(dbc);
// EOS