pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedCan not execute DDL in SSIS.
4+ messages / 3 participants
[nested] [flat]
* Can not execute DDL in SSIS.
@ 2018-01-19 03:54 Der Fluch <446509381@qq.com>
0 siblings, 1 reply; 4+ messages in thread
From: Der Fluch @ 2018-01-19 03:54 UTC (permalink / raw)
To: pgsql-odbc <pgsql-odbc@postgresql.org>; pgsql-admin <pgsql-admin@lists.postgresql.org>
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!
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Can not execute DDL in SSIS.
@ 2018-01-19 11:58 Rakesh Kumar <rakeshkumar464@aol.com>
parent: Der Fluch <446509381@qq.com>
0 siblings, 1 reply; 4+ messages in thread
From: Rakesh Kumar @ 2018-01-19 11:58 UTC (permalink / raw)
To: 446509381@qq.com; pgsql-odbc@postgresql.org; pgsql-admin@lists.postgresql.org
Isn't SSIS SQL Server based tool. What has it got to do with PG?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Can not execute DDL in SSIS.
@ 2018-01-19 12:03 Jonathan Byrd <jonathan.d.byrd@live.com>
parent: Rakesh Kumar <rakeshkumar464@aol.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Byrd @ 2018-01-19 12:03 UTC (permalink / raw)
To: Rakesh Kumar <rakeshkumar464@aol.com>; 446509381@qq.com <446509381@qq.com>; pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
SSIS can connect to anything and presumably send the DDL statements to be executed on the target DB
Sent with Outlook<https://aka.ms/qtex0l; for iOS
________________________________
From: Rakesh Kumar <rakeshkumar464@aol.com>
Sent: Friday, January 19, 2018 6:58:55 AM
To: 446509381@qq.com; pgsql-odbc@postgresql.org; pgsql-admin@lists.postgresql.org
Subject: Re: Can not execute DDL in SSIS.
Isn't SSIS SQL Server based tool. What has it got to do with PG?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Can not execute DDL in SSIS.
@ 2018-01-19 15:27 Der Fluch <446509381@qq.com>
parent: Jonathan Byrd <jonathan.d.byrd@live.com>
0 siblings, 0 replies; 4+ messages in thread
From: Der Fluch @ 2018-01-19 15:27 UTC (permalink / raw)
To: Jonathan Byrd <jonathan.d.byrd@live.com>; Rakesh Kumar <rakeshkumar464@aol.com>; pgsql-odbc <pgsql-odbc@postgresql.org>; pgsql-admin <pgsql-admin@lists.postgresql.org>
Thanks all for the reply.
I think I have found the issue.
I installed the dsn from a program which set the permission to readonly. So even I changed the user to admin, it still performed read only operation.
While in pgadmin, it does not use the dsn, so there is no permission issue.
Thanks any way.
------------------ Original ------------------
From: "Jonathan Byrd";<jonathan.d.byrd@live.com>;
Date: Fri, Jan 19, 2018 08:03 PM
To: "Rakesh Kumar"<rakeshkumar464@aol.com>;"Der Fluch"<446509381@qq.com>;"pgsql-odbc@postgresql.org"<pgsql-odbc@postgresql.org>;"pgsql-admin@lists.postgresql.org"<pgsql-admin@lists.postgresql.org>;
Subject: Re: Can not execute DDL in SSIS.
SSIS can connect to anything and presumably send the DDL statements to be executed on the target DB
Sent with Outlook for iOS
From: Rakesh Kumar <rakeshkumar464@aol.com>
Sent: Friday, January 19, 2018 6:58:55 AM
To: 446509381@qq.com; pgsql-odbc@postgresql.org; pgsql-admin@lists.postgresql.org
Subject: Re: Can not execute DDL in SSIS.
Isn't SSIS SQL Server based tool. What has it got to do with PG?
Attachments:
2E03F914@4CAF8D02.730E625A.jpg (image/jpeg, 35.1K) download
view image
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2018-01-19 15:27 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-19 03:54 Can not execute DDL in SSIS. Der Fluch <446509381@qq.com>
2018-01-19 11:58 ` Rakesh Kumar <rakeshkumar464@aol.com>
2018-01-19 12:03 ` Jonathan Byrd <jonathan.d.byrd@live.com>
2018-01-19 15:27 ` Der Fluch <446509381@qq.com>
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