Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.databases.ms-sqlserver > #2156

Re: `sqlcmd' withholding error messages?

From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver
Subject Re: `sqlcmd' withholding error messages?
Date 2022-08-12 22:45 +0200
Organization Erland Sommarskog
Message-ID <XnsAEF1E77EE8A2CYazorman@127.0.0.1> (permalink)
References <20220811131035.f10b114df6b905668746c2ab@g{oogle}mail.com>

Show all headers | View raw


Anton Shepelev (anton.txt@g{oogle}mail.com) writes:
> Most of the time is works as expected, but on rare oc-
> casion the log file will contain error entries with an
> empty message, e.g.:
> 
>    Thu 08/11/2022 13:04:12.46:
>    Error invoking mem_bal _mem_balance.sql for SBO35:
>    --
> 
> Which means that `sqlcmd' returned an error  code  yet
> did not print any message to standard output. Do I in-
> voke it incorrectly?
> 

Unfortunately without a reproducible case, this is difficult to comment on.
What I can say is that sometimes I get the feeling that SQLCMD does not
relay all errors when there are many, but I have never investigate it.
But have I run into no errors at all, but still it's apparent that the
operation falied? When I think of it, I think I have, but I don't
recall the details. 

What's in your scripts? Loading of stored procedures and other
objects? Or something else? (In my case, it was most likely a stored
procedure.)

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

`sqlcmd' withholding error messages? Anton Shepelev <anton.txt@g{oogle}mail.com> - 2022-08-11 13:10 +0300
  Re: `sqlcmd' withholding error messages? Erland Sommarskog <esquel@sommarskog.se> - 2022-08-12 22:45 +0200
    Re: `sqlcmd' withholding error messages? Anton Shepelev <anton.txt@g{oogle}mail.com> - 2022-08-19 17:52 +0300
  Re: `sqlcmd' withholding error messages? Luuk <luuk@invalid.lan> - 2022-08-19 17:44 +0200
    Re: `sqlcmd' withholding error messages? Anton Shepelev <anton.txt@g{oogle}mail.com> - 2022-08-22 12:39 +0300
      Re: `sqlcmd' withholding error messages? Anton Shepelev <anton.txt@g{oogle}mail.com> - 2022-08-22 17:46 +0300

csiph-web