How to create an object from SQL over Object Layer

I would like to create an object from SQL and would like to use object layer instead of using INSERT.

There is procedure QBM_PJobCreate_HOInsert which can be use but not sure how I can generate UID/XObjectKey?

I found function newid() but it's generating GUID without CCC in front - can I just concat it?

Is there function which create XObjectKey from table name and UID?

Is there other easier way of creating those objects by SQL?