From: Der Fluch <446509381@qq.com>
To: pgsql-odbc <pgsql-odbc@postgresql.org>
To: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Can not execute DDL in SSIS.
Date: Fri, 19 Jan 2018 11:54:19 +0800
Message-ID: <tencent_0302FD92BDB716CC590A20C116CFB23A2807@qq.com> (raw)
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!
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: 446509381@qq.com, pgsql-odbc@postgresql.org, pgsql-admin@lists.postgresql.org
Subject: Re: Can not execute DDL in SSIS.
In-Reply-To: <tencent_0302FD92BDB716CC590A20C116CFB23A2807@qq.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