visual studio - SQL71508: The model already has an element that has the same name -
i unable build sql view openrowset function in visual studio 2015. view definition has openrowset , uses nested query. though valid , works in sql server, when try build view in visual studio throws 2 errors each column in outer select statement.
- sql71508: model has element has same name
- sql71005: reference column below sample view reference
use databasea go create view viewsample select columna , columnb , columnc , columnd ( select distinct column1 columna , row_number() over(partition column1 order columnd desc) rownumber , column2 columnb , column3 columnc , cast(getdate() date) columnd openrowset('microsoft.ace.oledb.12.0', 'excel 12.0 xml;hdr=yes;database=\\reportingserver\foldera\sample.xlsx', 'select * [sheet1$]') ) a.rownumber = 1
please let me know how handle scenario.
Comments
Post a Comment