Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 0484F9FB1F5 for ; Tue, 31 Oct 2006 13:22:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 80497-01 for ; Tue, 31 Oct 2006 17:22:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by postgresql.org (Postfix) with ESMTP id 76B4C9FA6B2 for ; Tue, 31 Oct 2006 13:22:24 -0400 (AST) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GexJf-0003at-TJ for pgsql-odbc@postgresql.org; Tue, 31 Oct 2006 09:22:23 -0800 Message-ID: <7098330.post@talk.nabble.com> Date: Tue, 31 Oct 2006 09:22:23 -0800 (PST) From: BeemerBiker To: pgsql-odbc@postgresql.org Subject: try .. catch .. not working like I expected MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jstateson@swri.edu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/5 X-Sequence-Number: 8387 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.