cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-6749%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%20%E3%82%A8%E3%83%A9%E3%83%BC%20%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%81%AE%E3%82%AD%E3%83%A3%E3%83%83%E3%83%81%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6749%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3E%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%20%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%82%92%E3%82%AD%E3%83%A3%E3%83%83%E3%83%81%E3%81%97%E3%81%A6%E3%80%81%E3%81%9D%E3%82%8C%E3%82%92%201%20%E3%81%A4%E3%81%AE%20jmp%20%E5%A4%89%E6%95%B0%E3%81%AB%E5%85%A5%E3%82%8C%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%8C%E3%81%82%E3%82%8B%E3%81%8B%E3%81%A9%E3%81%86%E3%81%8B%E3%82%92%E7%9F%A5%E3%82%8A%E3%81%9F%E3%81%84%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3CP%3EID%E4%B8%BB%E3%82%AD%E3%83%BC%E3%81%AB%E3%81%99%E3%81%A7%E3%81%AB%E5%AD%98%E5%9C%A8%E3%81%99%E3%82%8B1%E3%81%A4%E3%81%AE%E5%80%A4%E3%82%92%E6%8C%BF%E5%85%A5%E3%81%97%E3%82%88%E3%81%86%E3%81%A8%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81Oracle%20DB%E3%81%AE%E4%BE%8B%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F*%20JSL%20*%2F%3C%2FP%3E%3CP%3Esql%20%3D%20%22INSERT%20INTO%20MY.TABLE%20(ID%2C%20DATA)%20VALUES%20('A'%2C150)%22%3B%3C%2FP%3E%3CP%3EOpenDatabase%20(dsnDB%E3%80%81SQL)%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%2F*%20%E3%83%AD%E3%82%B0%E8%A1%A8%E7%A4%BA%20*%2F%3C%2FP%3E%3CP%3E%5BOracle%5D%5BODBC%5D%5BOra%5DORA-00001%3A%20%E4%B8%80%E6%84%8F%E3%81%AE%E5%88%B6%E7%B4%84%20(MY.TABLE)%20%E3%81%AB%E9%81%95%E5%8F%8D%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%3C%2FP%3E%3CP%3EORA-06512%3A%201%E8%A1%8C%E7%9B%AE%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92jsl%E5%A4%89%E6%95%B0%E3%81%AB%E5%85%A5%E3%82%8C%E3%81%9F%E3%81%84%E3%81%A8%E6%80%9D%E3%81%84%E3%81%BE%E3%81%99%EF%BC%9A%E3%80%8C%5BOracle%5D%20%5BODBC%5D%20%5BOra%5D%20ORA-00001%EF%BC%9A%E4%B8%80%E6%84%8F%E3%81%AE%E5%88%B6%E7%B4%84%EF%BC%88MY.TABLE%EF%BC%89%E3%81%AB%E9%81%95%E5%8F%8D%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%8D%E3%80%82%3C%2FP%3E%3CP%3E%E4%BB%8A%E3%81%AE%E3%81%A8%E3%81%93%E3%82%8D%E8%A7%A3%E6%B1%BA%E7%AD%96%E3%81%AF%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6751%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%20%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%82%92%E3%82%AD%E3%83%A3%E3%83%83%E3%83%81%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6751%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%84%E3%81%82%E3%80%81%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E7%B4%A0%E6%99%B4%E3%82%89%E3%81%97%E3%81%84%E3%83%92%E3%83%B3%E3%83%88%E3%82%92%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%80%82%20Log%20Capture%20%E6%A9%9F%E8%83%BD%E3%81%AF%E3%80%81%E7%A7%81%E3%81%8C%E6%8E%A2%E3%81%97%E3%81%A6%E3%81%84%E3%81%9F%E6%A9%9F%E8%83%BD%E3%81%A7%E3%81%99%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6750%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%20%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%82%92%E3%82%AD%E3%83%A3%E3%83%83%E3%83%81%E3%81%99%E3%82%8B%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6750%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E3%82%84%E3%81%82%E3%80%81%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%E3%81%93%E3%82%8C%E3%82%92%E8%A1%8C%E3%81%86%201%20%E3%81%A4%E3%81%AE%E6%96%B9%E6%B3%95%E3%81%AF%E3%80%81%E3%83%AD%E3%82%B0%20%E3%82%AD%E3%83%A3%E3%83%97%E3%83%81%E3%83%A3%E6%A9%9F%E8%83%BD%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%E3%80%82%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3EJSL%20%E3%82%B3%E3%83%BC%E3%83%89%E3%82%92%E3%83%86%E3%82%B9%E3%83%88%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AB%E3%80%812%20%E3%81%A4%E3%81%AE%E7%95%B0%E3%81%AA%E3%82%8B%E3%82%BF%E3%82%A4%E3%83%97%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%82%92%E3%82%B7%E3%83%9F%E3%83%A5%E3%83%AC%E3%83%BC%E3%83%88%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3COL%20class%3D%22MailOutline%22%3E%3CLI%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%9F%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E3%81%8B%E3%82%89%E5%88%97%E3%82%92%E9%81%B8%E6%8A%9E%E3%81%99%E3%82%8B%E5%89%8D%E3%81%AB%20Access%20%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%81%B8%E3%81%AE%E6%8E%A5%E7%B6%9A%E3%82%92%E7%A2%BA%E7%AB%8B%E3%81%97%E3%81%AA%E3%81%84%E3%81%93%E3%81%A8%E3%81%AB%E3%82%88%E3%82%8B%E5%A4%B1%E6%95%97%E3%82%A8%E3%83%A9%E3%83%BC%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%E9%81%A9%E5%88%87%E3%81%AA%20ODBC%20%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%83%BC%E3%81%8C%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%AA%E3%81%84%E3%81%93%E3%81%A8%E3%81%AB%E3%82%88%E3%82%8B%E5%A4%B1%E6%95%97%E3%82%A8%E3%83%A9%E3%83%BC%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%E6%AC%A1%E3%81%AEJSL%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A8%E3%81%9D%E3%81%AE%E7%B5%90%E6%9E%9C%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E3%83%A1%E3%83%83%E3%82%BB%E3%83%BC%E3%82%B8%E3%81%A7%E3%82%84%E3%82%8A%E3%81%9F%E3%81%84%E3%81%93%E3%81%A8%E3%82%92%E9%81%94%E6%88%90%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AE%E4%BE%8B%E3%82%92%E5%90%AB%E3%82%81%E3%81%BE%E3%81%97%E3%81%9F%3A%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23032ce4%3B%22%3E%E5%90%8D%E5%89%8D%E3%81%AE%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%81%AF%E3%81%93%E3%81%93%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23032ce4%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3EAccessError01%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%E3%80%8C%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%82%A8%E3%83%A9%E3%83%BC%3A%E3%80%8D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%7C%7C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%E3%83%AD%E3%82%B0%E3%82%AD%E3%83%A3%E3%83%97%E3%83%81%E3%83%A3%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%82%92%E9%96%8B%E3%81%8F%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%22DSN%3DMS%20Access%20%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%3BDBQ%3DC%3AUsersstkoprDocumentsMovinOn.accdb%3BDriverId%3D25%3BFIL%3DMS%20Access%3BMaxBufferSize%3D2048%3BPageTimeout%3D5%3BUID%3Dadmin%3B%22%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%E3%80%81%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%22SELECT%20*%20FROM%20tblVehicle%22%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%E3%80%81%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%E3%80%8Ctbl%E3%83%93%E3%83%BC%E3%82%AF%E3%83%AB%E3%80%8D%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)))%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%E4%BB%A5%E4%B8%8B%E3%81%8C%E3%83%AD%E3%82%B0%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BE%E3%82%8C%E3%80%81%E3%82%A8%E3%83%A9%E3%83%BC%E6%96%87%E5%AD%97%E5%88%97%E3%81%8C%E3%82%B7%E3%83%8A%E3%83%AA%E3%82%AA%20%E3%83%86%E3%82%B9%E3%83%88%201%20%E3%81%AE%E5%A4%89%E6%95%B0%20AccessError01%20%E3%81%AB%E6%A0%BC%E7%B4%8D%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E%E3%80%8C%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%82%A8%E3%83%A9%E3%83%BC%3A%3C%2FSTRONG%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E%5BMicrosoft%5D%5BODBC%20Microsoft%20Access%20Driver%5D%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%20'(unknown)'%20%E3%81%8C%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E%22%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23dc3f19%3B%22%3E%E4%BB%A5%E4%B8%8B%E3%81%8C%E3%83%AD%E3%82%B0%E3%81%AB%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BE%E3%82%8C%E3%80%81%E3%82%B7%E3%83%8A%E3%83%AA%E3%82%AA%20%E3%83%86%E3%82%B9%E3%83%88%202%20%E3%81%AE%E5%A4%89%E6%95%B0%20AccessError01%20%E3%81%AB%E6%96%87%E5%AD%97%E5%88%97%E3%81%8C%E6%A0%BC%E7%B4%8D%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%20%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20style%3D%22color%3A%20%23000000%3B%20text-align%3A%20-webkit-auto%3B%20font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E%E3%80%8C%E3%82%A2%E3%82%AF%E3%82%BB%E3%82%B9%E3%82%A8%E3%83%A9%E3%83%BC%3A%3C%2FSTRONG%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%23000000%3B%20text-align%3A%20-webkit-auto%3B%20font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E%5BiODBC%5D%5B%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%83%BC%20%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8%E3%83%A3%E3%83%BC%5D%20%E3%83%87%E3%83%BC%E3%82%BF%20%E3%82%BD%E3%83%BC%E3%82%B9%E5%90%8D%E3%81%8C%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%89%E3%81%9A%E3%80%81%E6%97%A2%E5%AE%9A%E3%81%AE%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%83%BC%E3%81%8C%E6%8C%87%E5%AE%9A%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%9B%E3%82%93%E3%80%82%20%E3%83%89%E3%83%A9%E3%82%A4%E3%83%90%E3%83%BC%E3%82%92%E3%83%AD%E3%83%BC%E3%83%89%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22color%3A%20%23000000%3B%20text-align%3A%20-webkit-auto%3B%20font-size%3A%2014px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E%22%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CA%20href%3D%22http%3A%2F%2Fblogs.sas.com%2Fcontent%2Fjmp%2F2013%2F05%2F10%2Fusing-jmp-to-connect-to-databases-insert-records%2F%22%20title%3D%22http%3A%2F%2Fblogs.sas.com%2Fcontent%2Fjmp%2F2013%2F05%2F10%2Fusing-jmp-to-connect-to-databases-insert-records%2F%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3E%E3%81%AF%E3%81%84%E3%80%81%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99...%20ODBC%20%E3%83%87%E3%83%BC%E3%82%BF%E3%83%99%E3%83%BC%E3%82%B9%E3%81%AB%E6%8E%A5%E7%B6%9A%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
gbu
gbu
Level III

Catching database error message

Hello,

I would like to know if there is a way to catch database error message and put it into one jmp variable.

Example for an Oracle DB, if I try to insert one value already existing on ID primary key :

/* JSL */

sql = "INSERT INTO MY.TABLE (ID, DATA) VALUES ('A',150)";

OpenDatabase (dsnDB, sql);

/* LOG display */

[Oracle][ODBC][Ora]ORA-00001: unique constraint (MY.TABLE) violated

ORA-06512: at line 1

I would like to have in a jsl variable this sting : "[Oracle][ODBC][Ora]ORA-00001: unique constraint (MY.TABLE) violated".

I didn't find any solutions for the moment.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
stan_koprowski
Community Manager Community Manager

Re: Catching database error message

Hi,

One way to do this is with the Log Capture function. To test the JSL code I simulated two different types of errors:

  1. A failure error by not establishing a connection to the Access database prior to selecting the columns from the specified table
  2. A failure error by not having an appropriate ODBC driver installed


I have included an example of how you could accomplish what you want to do in the following JSL code and the resulting error messages:


Names Default To Here( 1 );

AccessError01 = "Access Error:" || Log Capture(Open Database(

"DSN=MS Access Database;DBQ=C:UsersstkoprDocumentsMovinOn.accdb;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;UID=admin;",

"SELECT * FROM tblVehicle",

"tblVehicle"

));


The following is written to the log and the error string is stored in the variable AccessError01 for scenario test 1. 

"Access Error:

[Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.

"

The following is written to the log and the string is stored in the variable AccessError01 for scenario test 2.

"Access Error:

[iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded

"


Yes, you can...connect to an ODBC database

View solution in original post

2 REPLIES 2
stan_koprowski
Community Manager Community Manager

Re: Catching database error message

Hi,

One way to do this is with the Log Capture function. To test the JSL code I simulated two different types of errors:

  1. A failure error by not establishing a connection to the Access database prior to selecting the columns from the specified table
  2. A failure error by not having an appropriate ODBC driver installed


I have included an example of how you could accomplish what you want to do in the following JSL code and the resulting error messages:


Names Default To Here( 1 );

AccessError01 = "Access Error:" || Log Capture(Open Database(

"DSN=MS Access Database;DBQ=C:UsersstkoprDocumentsMovinOn.accdb;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;UID=admin;",

"SELECT * FROM tblVehicle",

"tblVehicle"

));


The following is written to the log and the error string is stored in the variable AccessError01 for scenario test 1. 

"Access Error:

[Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.

"

The following is written to the log and the string is stored in the variable AccessError01 for scenario test 2.

"Access Error:

[iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded

"


Yes, you can...connect to an ODBC database

gbu
gbu
Level III

Re: Catching database error message

Hi,

Thanks for this great tips. Log Capture function is the function that I was looking for.

Recommended Articles