Can not execute DDL in SSIS.

From: Der Fluch <446509381(at)qq(dot)com>
To: pgsql-odbc <pgsql-odbc(at)postgresql(dot)org>, pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Can not execute DDL in SSIS.
Date: 2018-01-19 03:54:19
Message-ID: tencent_0302FD92BDB716CC590A20C116CFB23A2807@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin 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!

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Saeed Ahmed (DB) 2018-01-19 10:17:16 POSTGRESQL 10 Media download with CHECKSUM VALUE
Previous Message Aldo Sarmiento 2018-01-19 02:19:38 Re: Backups

Browse pgsql-odbc by date

  From Date Subject
Next Message Rakesh Kumar 2018-01-19 11:58:55 Re: Can not execute DDL in SSIS.
Previous Message Inoue, Hiroshi 2018-01-11 21:47:53 Re: Bug in is_setting_search_path