Set arithabort ON When executing a command from powerbuilder application

Kriti Ana 0 Reputation points
2023-02-02T11:29:06.9633333+00:00

Script to Set arithabort ON When executing a command from powerbuilder application once session logon.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,155 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Olaf Helper 41,331 Reputation points
    2023-02-02T11:34:43.6866667+00:00

    Not clear, what you are exectly looking for.

    Add "Set arithabort ON" to your SQL scripts.

    0 comments No comments

  2. Limitless Technology 44,001 Reputation points
    2023-02-02T17:15:46.65+00:00

    Hello there,

    There is no setting to force SqlClient to always set ARITHABORT on, you have to set this as you describe.

    You should always set ARITHABORT to ON in your logon sessions. Setting ARITHABORT to OFF can negatively impact query optimization leading to performance issues. https://learn.microsoft.com/en-us/sql/t-sql/statements/set-arithabort-transact-sql?redirectedfrom=MSDN&view=sql-server-ver16

    The default ARITHABORT setting for SQL Server Management Studio is ON. Client applications setting ARITHABORT to OFF might receive different query plans, making it difficult to troubleshoot poorly performing queries.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

  3. Limitless Technology 44,001 Reputation points
    2023-02-02T17:15:53.8933333+00:00

    Hello there,

    There is no setting to force SqlClient to always set ARITHABORT on, you have to set this as you describe.

    You should always set ARITHABORT to ON in your logon sessions. Setting ARITHABORT to OFF can negatively impact query optimization leading to performance issues. https://learn.microsoft.com/en-us/sql/t-sql/statements/set-arithabort-transact-sql?redirectedfrom=MSDN&view=sql-server-ver16

    The default ARITHABORT setting for SQL Server Management Studio is ON. Client applications setting ARITHABORT to OFF might receive different query plans, making it difficult to troubleshoot poorly performing queries.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

  4. Erland Sommarskog 102.3K Reputation points
    2023-02-02T22:59:52.8366667+00:00

    Your question (or whatever we should call it) is not really clear.

    But in any case, the setting ARITHABORT has absolutely no effect, if other SET options are in their default positions, so there is no reason to meddle with it.

    0 comments No comments