Errors and warnings
Marcos Sánchez Provencio <[email protected]> Tue, 10 Aug 2004 10:46:42 +0200
| Newsgroups | gmane.comp.python.sybase |
|---|---|
| Organization | www.burke.es |
| Message-ID | <[email protected]> |
Is it possible to tell errors form warnings when working with SQL
Server? There are some warnings (eg null value eliminated from
aggregate) that I want to ignore. This could be based on the severity
level of the message. Something like:
def _servermsg_cb(ctx, conn, msg):
#if msg.msgnumber not in (5701, 5703):
if msg.severity:
raise DatabaseError(_fmt_server(msg))
If not, it is not possible to execute 'sp_help mytable' on a table that
has no views. It is funny that the program never ends, it hangs.
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBGItvTwXdxLmtmxsRAogRAJ9e5WMnufnFwi1OGCbz2dizSAX0rgCdG5sF 2gDgvESTCCBIbsAhzHMm0wE= =Xb5Q -----END PGP SIGNATURE-----