TechTip: SQL2CSV and SQL2XML
** This thread discusses the article: TechTip: SQL2CSV and SQL2XML **
Thanks Giuseppe for the great tool, it helps me a lot. I have 2 issues however: First, it seems does not work if there is constant value in SQL statement, for instance, I cannot have this statement to run: SQL2XML SQLSTMT('Select cusno as [CustomerNumber], + cname as [CustomerName], case when goldac + = ''Y'' then ''GOLD'' when teamac = ''Y'' + then ''TEAM'' else ''STANDARD_COST'' end + as [AccountType], case when activ = ''1'' + then ''E'' else ''D'' end as [Status] + from custmast') + Another issue is the column name is cut off for the name longer than 18 characters, in my SQL I have [BillingAddressNumber] as column name but it shown only the first 18 characters in XML file below:288017 Any ideas? thanks again for sharing the excellent tool.
** This thread discusses the article: TechTip: SQL2CSV and SQL2XML **
Thanks Giuseppe for the great tool, it helps me a lot. I have 2 issues however: First, it seems does not work if there is constant value in SQL statement, for instance, I cannot have this statement to run: SQL2XML SQLSTMT('Select cusno as [CustomerNumber], + cname as [CustomerName], case when goldac + = ''Y'' then ''GOLD'' when teamac = ''Y'' + then ''TEAM'' else ''STANDARD_COST'' end + as [AccountType], case when activ = ''1'' + then ''E'' else ''D'' end as [Status] + from custmast') + Another issue is the column name is cut off for the name longer than 18 characters, in my SQL I have [BillingAddressNumber] as column name but it shown only the first 18 characters in XML file below:
Comment