I have been researching this problem for a week now and I haven't found anything that works. Here is the problem: We recently removed the SET ANSI_WARNINGS OFF code at the top of all of our triggers because they were causing way too many recompiles and we were seeing locking, blocking and timeouts. Unfortunately, we are now seeing many application errors (VB6) where the warnings are causing errors in our recordsets and return values. The default on the SQL Server database is set to OFF. I have now added "ansinpw=off;" to the connection string. I have even added the following:
-
Dim connCurrent As New ADODB.Connection
-
connCurrent.Execute "SET ANSI_WARNINGS OFF"
-
My question to all of you is where else might these be being set to on? It really isn't an option to include them in the offending triggers because of the locking issues?
Thanks very much for any insight you can give me.
Laurie