AS/400
Standard
Driver={IBM i Access ODBC Driver};System=mySystem;Uid=myUser;Pwd=myPassword;
Variant for reserved error (-7778)
Try this if you encounter a "runtime error 3000; reserved error (-7778); there is no message for this error" message.
Driver={IBM i Access ODBC Driver};System=mySystem;Uid=myUser;Pwd=myPassword;MGDSN=0;
Secure Sockets Layer (SSL) connection
Driver={IBM i Access ODBC Driver};System=mySystem;UID=myUser;PWD=myPassword;SSL=1;
Read-only connection
Enbales SELECT statements only. No UPDATE etc.
Driver={IBM i Access ODBC Driver};System=mySystem;UID=myUser;PWD=myPassword;CONNTYPE=2;
Disable compression
Driver={IBM i Access ODBC Driver};System=mySystem;UID=myUser;PWD=myPassword;COMPRESSION=0;
Disable SELECT prefetching
Use this connection string to disable prefetching for SELECT statements.
Driver={IBM i Access ODBC Driver};System=mySystem;UID=myUser;PWD=myPassword;PREFETCH=0;
Specify sorting language (collation)
Example using spanish (ESP) language for sorting.
Driver={IBM i Access ODBC Driver};System=mySystem;UID=myUser;PWD=myPassword;SORTTYPE=2;LANGUAGEID=ESP;
Case sensitive sorting (collation)
Driver={IBM i Access ODBC Driver};System=mySystem;UID=myUser;PWD=myPassword;SORTTYPE=2;LANGUAGEID=ESP;SORTWEIGHT=1;