Can not execute DDL in SSIS. - Mailing list pgsql-odbc

From Der Fluch
Subject Can not execute DDL in SSIS.
Date
Msg-id tencent_0302FD92BDB716CC590A20C116CFB23A2807@qq.com
Whole thread Raw
Responses Re: Can not execute DDL in SSIS.  (Rakesh Kumar <rakeshkumar464@aol.com>)
Re: Can not execute DDL in SSIS.  (Rakesh Kumar <rakeshkumar464@aol.com>)
List pgsql-odbc
Hi,

I'd like to drop some indexed inside an SSIS SQL Task, but this failed with the following error: "Connection is readonly, only select statements are allowed.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. 
 
I've checked the connection, which should be fine because ddl can run in pgadmin or other ODBC query tools.
In the SSIS Task, statements like 'select'/ 'refresh' work as expected, which I guess it does not change the database schema. But create/drop would fail. 
I've seen some posts that say we sould check if the odbc.ini is set to readonly. But I do not know which odbc.ini it refers to.

Any idea how to solve this?

Many thanks!

pgsql-odbc by date:

Previous
From: "Inoue, Hiroshi"
Date:
Subject: Re: Bug in is_setting_search_path
Next
From: Rakesh Kumar
Date:
Subject: Re: Can not execute DDL in SSIS.