简体   繁体   English

在Win 7上从IBM netezza数据库导出sql数据表到txt文件的错误

[英]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.

相关问题 将数据从txt文件导入IBM netezza SQL数据库时出错 - error of importing data from txt file to IBM netezza SQL database 将CSV文件中的数据导入IBM Netezza SQL数据库时出错 - error of importing data from csv file to IBM netezza sql database Win7上Aginity工作台在IBM netezza SQL数据库上执行SQL查询时出错 - Error of SQL query on IBM netezza SQL database from Aginity workbench on Win7 在win 7上从Aginity工作台找到IBM netezza sql数据库上的表大小 - find the table size on IBM netezza sql database from Aginity workbench on win 7 如果从Aginity工作台将47G数据文件导入到IBM netezza数据库,则会发生错误 - error if importing a 47G data file to IBM netezza database from Aginity workbench 在win 7的IBM netezza Aginity工作台中查找数据库大小的错误 - error of finding size of database in IBM netezza Aginity workbench on win 7 在IBM netezza数据库的SQL表中查找部分重复的行 - find partial duplicated rows in a SQL table in IBM netezza database IBM netezza SQL数据库中运行存储过程的错误 - error of running a stored proceudre in IBM netezza SQL database 如何从Aginity工作台检查在IBM Netezza SQL中创建表的数据和时间 - How to check the data and time that a table was created in IBM Netezza SQL from Aginity workbench 在IBM netezza SQL表中找到多个列的独特组合的错误 - error of finding distinct cobinations of muiltiple columns in IBM netezza SQL table
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM