pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BeemerBiker <jstateson@swri.edu>
To: pgsql-odbc@postgresql.org
Subject: try .. catch .. not working like I expected
Date: Tue, 31 Oct 2006 09:22:23 -0800 (PST)
Message-ID: <7098330.post@talk.nabble.com> (raw)


A web project with VS8 and dotnet:  I am using the (only) SqlDataSource that
is in m$ofts toolbox for their datagrid.  All the postgre sql stuff is
grayed out in web project design.

The following generates a server error irregardless of whether I got an [x]
in the debug's enable exception handles:

try { Sql_DS.SelectCommand = "DROP TABLE '##TEMP'" } catch {};

The above works if ##TEMP exists, generats server error if it doesnt.  

In looking at the object browser for Sql_DS, I do not see ".Active" nor do I
see ".Execute()" so I assume that the above statement is executed when the
assignment to the SelectCommand is run?  In other words do I have the
correct statement in the try..catch.. ?  

..TIA..

-- 
View this message in context: http://www.nabble.com/try-..-catch-..-not-working-like-I-expected-tf2547090.html#a7098330
Sent from the PostgreSQL - odbc mailing list archive at Nabble.com.




Message-ID: <7098330.post@talk.nabble.com>
Permalink:  ../7098330.post@talk.nabble.com/
Also on:    postgresql.org/message-id/7098330.post@talk.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: jstateson@swri.edu
  Subject: Re: try .. catch .. not working like I expected
  In-Reply-To: <7098330.post@talk.nabble.com>
  References: <7098330.post@talk.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox