Hi,
In squirrel 3.7, if I run a couple of pieces of SQL together, the report output states each operation and rowcount in order of processing, however it retains the type of operation through its entire report.
For instance:
**delete** from log.lastrun where PackageName in ('Chicken', 'Turkey');
**insert** into log.lastrun (PackageName, TaskName, ExpectedDaysBehind)
values ('Chicken', 'DFP:Merge User IDs Step 01', 2)
,('Chicken', 'DCM:Merge User IDs Step 02', 2);
**insert** into log.lastrun (PackageName, TaskName, ExpectedDaysBehind)
values ('Turkey', 'Merge User IDs Step 01', 2)
,('Turkey', 'Merge User IDs Step 02', 2)
Results:
4 Row(s) Deleted
2 Row(s) Deleted
2 Row(s) Deleted
Whoops: Forgot to take my "bolds" off when I put it in a code block.
hi - which database was this with and can you check in the session properties that there isn't a custom statement separator set to something other than semi-colon (given your example above uses a semi-colon separator)? I just tried a quick test against hsqldb using the latest git version which did the right thing.
Hi Neville,
Ya know, if I wasn't on the run that day, I'd have dug a little more to provide more detail. Sorry about that.
I just checked and
So that does get around the issue.
Thanks for the suggestion.Have a great day!
Joe
I think you must be using Sybase or MS SQL Server - for both of them the db-specific plugin in SquirrelSQL sets the statement separator to GO. That is so that SquirrelSQL emulates the native clients for those databases. If you switch db server types regularly then it's perhaps not the behaviour you want. Easy to rectify through the properties as you've noticed. The reason I use SquirrelSQL is so that I can use the same client on multiple DB servers, so I tend to reset the properties to be common.