Virtual tables are pieces of data that the NAV executable collects at runtime, and represents as a table structure, so that we can access it in C/AL code as if it were a table. As Alain said earlier, virtual tables do not exist on SQL Server.
the get the field names in sql you can use the sql system tables.
select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS
where TABLE_CATALOG = <databasename>
and TABLE_NAME = <tablename>
-- and ORDINAL_POSITION = <field no.>
best regards
Franz Kalchmair, MVP
Alias: Jonathan Archer
Virtual tables are pieces of data that the NAV executable collects at runtime, and represents as a table structure, so that we can access it in C/AL code as if it were a table. As Alain said earlier, virtual tables do not exist on SQL Server.
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
thanks for the response.
And how does nav make it? Does it use any view or something I could use from sql server?
RIS Plus, LLC
select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS
where TABLE_CATALOG = <databasename>
and TABLE_NAME = <tablename>
-- and ORDINAL_POSITION = <field no.>
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/
thanks. I though they exist somewhere.