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.

  1. sql71508: model has element has same name
  2. 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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -