Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I specify which connection context instance and/or execution context instance a SQLJ statement should use?

0
10 Posted

How do I specify which connection context instance and/or execution context instance a SQLJ statement should use?

0
10

Suppose you have instantiated a connection context instance connctxt and an execution context instance execctxt. Consider the following examples. #sql [connctxt] { …SQL operation…}; The preceding specifies that connctxt should be used for this statement. The default execution context instance will be used. #sql [execctxt] { …SQL operation…}; The preceding specifies that exectxt should be used for this statement. The default connection context instance will be used. #sql [connctxt, execctxt] { …SQL operation…}; The preceding specifes that connctxt and exectxt should both be used (the connection context instance must precede the execution context instance when specifying both).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123