[英]error of exporting a sql data table from IBM netezza database to a txt file on win 7
I would like to export a data table from IBM netezza SQL daatbase in Aginity workbench to a txt file on win 7. 我想将数据表从Aginity工作台中的IBM netezza SQL daatbase导出到win 7上的txt文件中。
I called The sql query from C# in visual studio 2013: 我在Visual Studio 2013中从C#调用了sql查询:
CREATE EXTERNAL TABLE 'C:\\path\\my_name.txt'
USING
(
Y2BASE 2000
ENCODING 'internal'
REMOTESOURCE 'ODBC'
ESCAPECHAR '\'
)
AS
SELECT *
FROM admin.my_table
I logged in as admin in the database. 我以管理员身份登录数据库。 But, I got error:
但是,我得到了错误:
Exception captured: System.Data.Odbc.OdbcException (0x80131937):
ERROR [HY000] ERROR: CREATE EXTERNAL TABLE: permission denied.
Also, I got the same error when I used "export table" wizard in Aginity workbench. 另外,当我在Aginity工作台中使用“导出表”向导时,出现了相同的错误。
But, I can export the table by running SQL query in Aginity workbench. 但是,我可以通过在Aginity工作台中运行SQL查询来导出表。
Any help would be appreciated. 任何帮助,将不胜感激。
Can you please clarify what you mean here ? 你能在这里澄清你的意思吗?
But, I can export the table by running SQL query in Aginity workbench.
但是,我可以通过在Aginity工作台中运行SQL查询来导出表。
My guess would be that you are right clicking and exporting to excel or csv. 我的猜测是您右键单击并导出到excel或csv。 This is quite different than an external table.
这与外部表完全不同。
The external table is a special privilege that must be granted by the DBA. 外部表是DBA必须授予的特殊特权。
http://colbran.co.za/wordpress/2011/07/14/netezza-external-tables/ http://colbran.co.za/wordpress/2011/07/14/netezza-external-tables/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.