Hi @gcusello ,
Following is the query that used to return database records but now it is not working.
dbquery wmsewprd "select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from SYS_CODE_TYPE"
What's the error you're getting.
dbquery command is very well documented here :