数据连接建立之后,添加如下的脚本,重新加载即可。翻墙看到的代码又做了修改:
SQLTableList:
LOAD "TABLE_NAME" as TableNames;
SQL SELECT DISTINCT "TABLE_NAME" FROM "INFORMATION_SCHEMA".COLUMNS;
Let vTableCount = NoOfRows(‘SQLTableList‘);
Let vTableCountQVD = ‘dbo.[‘ & NoOfRows(‘SQLTableList‘) & ‘]‘;
For i = 0 To $(vTableCount) -1
QUALIFY *;
LET vMyTableName = ‘dbo.[‘ & Peek(‘TableNames‘, $(i), ‘SQLTableList‘) & ‘]‘;
LET vMyTableNameQVD = Replace(Peek(‘TableNames‘, $(i), ‘SQLTableList‘), ‘ ‘, ‘‘);
$(vMyTableNameQVD):
SQL SELECT *FROM $(vMyTableName);
//STORE $(vMyTableNameQVD) INTO $(ExtractQVD)$(vMyTableNameQVD).QVD;
//DROP Table $(vMyTableNameQVD);
Next i
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-02 15:36:28