Skip to content

Bug: Multiple sql statements randomly fails #1102

@mikegreen

Description

@mikegreen

Describe the bug

Describe the bug
When I run the below, which is valid SQL, I get an error.

To Reproduce
This sql:

UPDATE tblDocuments SET DocumentTypeID = 3047 WHERE DocumentID = 5296445;
UPDATE tblDocuments SET DocumentTypeID = 3047 WHERE DocumentID = 5294620;
UPDATE tblDocuments SET DocumentTypeID = 3036 WHERE DocumentID = 5275406;
UPDATE tblDocuments SET DocumentTypeID = 3047 WHERE DocumentID = 5268630;
UPDATE tblDocuments SET DocumentTypeID = 3047 WHERE DocumentID = 5608449;
UPDATE tblDocuments SET DocumentTypeID = 3047 WHERE DocumentID = 5608450;
UPDATE tblDocuments SET DocumentTypeID = 3047 WHERE DocumentID = 5608493;
UPDATE tblDocuments SET DocumentTypeID = 3047 WHERE DocumentID = 5611079;

Select it all, hit run selected.

Returns:

Initializing connection...
Connection ready. Took 0.026 seconds.

Statement completed successfully. (1 rows affected). 0.000 seconds. (Line 1).
Statement completed successfully. (1 rows affected). 0.000 seconds. (Line 2).
Statement completed successfully. (1 rows affected). 0.000 seconds. (Line 3).
Statement completed successfully. (1 rows affected). 0.000 seconds. (Line 4).
Statement completed successfully. (1 rows affected). 0.000 seconds. (Line 5).
Statement completed successfully. (1 rows affected). 0.000 seconds. (Line 6).
Msg 102, Level 15, State 1.
Incorrect syntax near '='. 0.000 seconds. (Line 7).

Finished. Total time: 0.077 seconds.

If I run them one by one, or in blocks of 6 it works. But over 7 it fails...

Expected behavior
It would run all of them.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional details
Enter any additional details we should know about.

Product

SQLPro Studio

App version

Version 2025.91 (Build 115613.5)

Platform

macOS

Installation source

App Store

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions