V
V
vbif2017-09-14 12:55:05
Delphi
vbif, 2017-09-14 12:55:05

Why is exec inserted into the request body?

In a Delphi program, the database is accessed via ADOQuery. In one place before the insert had to turn off the trigger. On some computers, everything works fine, but on others, the error "Incorrect syntax near the keyword "trigger"" is displayed, and for some reason the profiler displays that it is trying to execute the instruction. exec disable trigger dbo.<trigger_name>…
What could it be and how to deal with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2017-09-14
@vbif

This is related to the MS SQL client version. Several options to rewrite the trigger.

ALTER TABLE table_name DISABLE TRIGGER tr_name
ALTER  TRIGGER trigger_name  DISABLE

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question