The table was created as a NODE, therefore SQL Server adds a graph_id_xxxxxx column between others. I create a view with the following sentence:
CREATE VIEW FILE_VIEW1 AS
SELECT
[NAME]
FROM [dbo].[FILE_NAME]
But when I see the columns in the view, the graph_id_xxxx column is still there even when it was not part of the select statement in the view.
Would appreciate any help.
While those columns appear in sys.columns (not sure why) for the view, they aren't accessable and don't appear when you
select *from the view.You can eliminate them from the view metadata by pushing the graph table query into a subquery expression in the view, eg