When I dynamically create a datastore using SyntaxFromSQL (to generate the datastore source code based on an SQL SELECT statement), with syntax like this
string ERRORS, sql_syntax, dwsyntax_str, presentation_str dwsyntax_str = trans_object.SyntaxFromSQL ( sql_syntax, presentation_str, ERRORS) ds_1.Create( dwsyntax_str, ERRORS)
How can I check the names of the generated ds_1 data warehouse columns? I recall that in the case of a select statement that joins two or more tables, the resulting column names may be preceded by the corresponding table name, for example. instead of getting the column name field_id I can get the column name of the type: my_table_field_id . This causes problems when I later provide the column name ( field_id ) as an argument to the GetItem function, while the corresponding data store named the column my_table_field_id .
To make matters worse, I found out that one of the reasons why I was getting different column definitions (with the previous table name) was because the user was assigned the sa role !?!?! Sign!
source share