여러분 모두에게,
저는 사용자 지정 SQL과 함께 데이터베이스 쿼리를 많이 사용합니다. 아래와 같이 3가지 방법이 있는 것으로 알고 있습니다.
나는 가장 강력하고 더 안전하기 때문에 "새 SQL 쿼리"를 가장 좋아합니다(비밀번호 참조 ...).
안타깝게도 ODBC 연결 문자열 숨기기와 관련된 동작이 JMP17에서 변경되었지만 다음과 같이 수정될 예정입니다.
기본 설정 "ODBC 연결 문자열 숨기기" 설정에 대한 JMP17 동작: 연결 문자열... - JMP 사용자 커뮤니티
나는 Sitges에서 열린 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