failed to open schem filed error 2 code example Example: ERROR: Failed to open file 'C:\Users\PuspakASharma\TEST.SQL', error: 2 In short, you got the path wrong.