SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
[13.0.53 Beta] - Query Error resulting in SA Error
Goto page Previous  1, 2
 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
[13.0.53 Beta] - Query Error resulting in SA Error
Author Message
Mindflux



Joined: 25 May 2013
Posts: 846
Country: United States

Post Reply with quote
SysOp wrote:
I recommend disabling the SQL Assistant's automatic Syntax Check and Automatic Performance Analysis features for SSMS target, because they do lead to collisions. these features are best used with SQL Assistant IDE.


IF Vitaly, posting above has disabled the auto syntax checker and still gets script errors percolating up to the .net exception bubbles, I can't say I'm expecting this to fix it.

Why was this not an issue in v12?
Wed Apr 09, 2025 7:05 pm View user's profile Send private message
Mindflux



Joined: 25 May 2013
Posts: 846
Country: United States

Post Reply with quote
I turned off automatic syntax checking and can still get errors to bubble up to the .NET level from SSMS.
Thu Apr 10, 2025 9:11 am View user's profile Send private message
Mindflux



Joined: 25 May 2013
Posts: 846
Country: United States

Post Reply with quote
Quick video:

https://youtu.be/EuJRNrYHnFo

Code:

4/10/2025 8:24:34 AM   SnippingTool.exe   SA=13.0.56; Exe=C:\Program Files\WindowsApps\Microsoft.ScreenSketch_11.2502.18.0_x64__8wekyb3d8bbwe\SnippingTool\SnippingTool.exe; Cmd="C:\Program Files\WindowsApps\Microsoft.ScreenSketch_11.2502.18.0_x64__8wekyb3d8bbwe\SnippingTool\SnippingTool.exe" ; LogLvl=1; MsgLvl=0; Module=C:\Program Files (x86)\SQL Assistant 13\bin64\SqlAssist.dll; ImageBase=0000000008080000
4/10/2025 8:24:34 AM   SnippingTool.exe   Client: Attach
4/10/2025 8:24:58 AM   Ssms.exe   Error: Msg 102, Level 15, State 1,    Incorrect syntax near '.'.: .NET Exception

IF (@@version LIKE '%SQL Server 20%' AND @@version NOT LIKE '%SQL Server 2000%')
or @@version like '%SQL Azure%'
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(SCHEMA_NAME(), ''dbo'')')
else
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(USER_NAME(), ''dbo'')')
Msg 102, Level 15, State 1,    Incorrect syntax near '.'.: .NET Exception

IF (@@version LIKE '%SQL Server 20%' AND @@version NOT LIKE '%SQL Server 2000%')
or @@version like '%SQL Azure%'
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(SCHEMA_NAME(), ''dbo'')')
else
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(USER_NAME(), ''dbo'')')
Msg 102, Level 15, State 1,    Incorrect syntax near '.'.: .NET Exception

IF (@@version LIKE '%SQL Server 20%' AND @@version NOT LIKE '%SQL Server 2000%')
or @@version like '%SQL Azure%'
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(SCHEMA_NAME(), ''dbo'')')
else
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(USER_NAME(), ''dbo'')')
Msg 102, Level 15, State 1,    Incorrect syntax near '.'.: .NET Exception

IF (@@version LIKE '%SQL Server 20%' AND @@version NOT LIKE '%SQL Server 2000%')
or @@version like '%SQL Azure%'
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(SCHEMA_NAME(), ''dbo'')')
else
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(USER_NAME(), ''dbo'')')
Msg 102, Level 15, State 1,    Incorrect syntax near '.'.: .NET Exception

IF (@@version LIKE '%SQL Server 20%' AND @@version NOT LIKE '%SQL Server 2000%')
or @@version like '%SQL Azure%'
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(SCHEMA_NAME(), ''dbo'')')
else
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(USER_NAME(), ''dbo'')')
Msg 102, Level 15, State 1,    Incorrect syntax near '.'.: .NET Exception

IF (@@version LIKE '%SQL Server 20%' AND @@version NOT LIKE '%SQL Server 2000%')
or @@version like '%SQL Azure%'
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(SCHEMA_NAME(), ''dbo'')')
else
   EXEC ('select
    SERVERPROPERTY(''ServerName''),
    SYSTEM_USER,
    DB_NAME(),
    ISNULL(USER_NAME(), ''dbo'')')
4/10/2025 8:25:20 AM   SqlAssist.exe   fmPrefs: Release
4/10/2025 8:25:20 AM   SqlAssist.exe   fmPrefs: Destroy

Thu Apr 10, 2025 9:26 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
There is also background performance analyzer option that you can turn off.
DB Options tab -> SQL Server -> Performance Analysis section -> all 3 analysis options can be changed to No.

But please be aware this is not by target editor, turning them off impacts all targets, and disable its working in SQL Assistant IDE and other editors too.
Thu Apr 10, 2025 9:36 am View user's profile Send private message
Mindflux



Joined: 25 May 2013
Posts: 846
Country: United States

Post Reply with quote
SysOp wrote:
There is also background performance analyzer option that you can turn off.
DB Options tab -> SQL Server -> Performance Analysis section -> all 3 analysis options can be changed to No.

But please be aware this is not by target editor, turning them off impacts all targets, and disable its working in SQL Assistant IDE and other editors too.


One of those is already turned off (Analyze Query Performance).

I don't recall this being an issue with SQL Assistant 12 to this extent. I really feel like something got changed and a bug has manifested itself.

Do you have a link where I can snag the last version of 12.x? I might reload it just to see if I can get it to behave.

edit: I turned off the other two performance analyzers and still can get a .NET bubble.

ALSO: It seems I lose my SQLA toolbar in SSMS when these exceptions occur.
Thu Apr 10, 2025 9:42 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
Well, there might be other differences too. Perhaps you no longer use the same old SSMS, the same old ADO.NET SQL client, or the same old .NET. Perhaps the SQL Server has been upgraded as well. The database may also be slower today than it was a few years ago as it grows in size. And in SQL Assistant v13, there are additional internal moving parts too. The underlying issue lies in multithreading and a lack of coordination. The add-on shares the database connection with its host. It runs a few background processes when the user appears idle. A collision occurs if SSMS is awakened during that time and sends a query to the database. That results in a collision, as multiple threads cannot use the same connection simultaneously. Slowness in the background processes can lead to more frequent collisions.

Unlike SSMS and few other tools, SQL Assistant's addons don't share connections with their hosts, and its not an issue for them. In SQL Assistant IDE its not an issue too, all processes work together and able to communicate with each other, wait if needed, queue requests if needed.
Fri Apr 11, 2025 7:25 pm View user's profile Send private message
Mindflux



Joined: 25 May 2013
Posts: 846
Country: United States

Post Reply with quote
All fair points, it just seems something can be done about it.

I'll try to use the SQLA Editor more next week so I can reproduce the exceptions. The database server hasn't changed, growth is moderate. SSMS is newer, from memory....
Fri Apr 11, 2025 8:06 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.