This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Fire Template from Code

How can I fire a template from code.

dbObject.ExecuteTemplates() does nothing.

I know there is this a way with sql (exec vid_InsertForHandleObject_0 'ExecuteTemplates', 'Person', '', @ProcID=newid) but I do not want to call sql from code, it should actually be possible from code directly?

Parents
  • Hi,

    The reason this doesn't work in the script tester in Designer is possibly/probably because you have the 'Use transaction' flag set under 'Options':

    If this flag is set ..... anything you do to the database will be done as a transaction and rolled back at the end.

    HTH, Barry.

Reply
  • Hi,

    The reason this doesn't work in the script tester in Designer is possibly/probably because you have the 'Use transaction' flag set under 'Options':

    If this flag is set ..... anything you do to the database will be done as a transaction and rolled back at the end.

    HTH, Barry.

Children
No Data