This view is perfectly valid in SQL Server, and can be created without a problem. In a Data Tools database solution, it prevents the solution from being built with a nonsensical error. CREATE VIEW [dbo].[aview] with schemabinding AS SELECT id = try_convert(int, id) FROM from [dbo].atable dError 3 SQL70561: Cannot schema bind view '[dbo].[aview]' because name 'int' is invalid for schema binding. Names must be in two-part format and an object cannot reference itself. C:\Users\...\Documents\Visual Studio 2010\Projects\...\Views\dbo.aview.sql 4 19 It thinks the data type is an object. See attached screenshot, where "try_convert(int" is underlined in red.Note that the project target platform is SQL 2012 and the project's database settings compatibility mode is SQL 2012.Version of Data Tools I'm using:In SQL Server 2012 Data Tools, Microsoft Visual Studio 2010Version 10.0.40219.1 SP1RelMicrosoft .NET FrameworkVersion 4.5.50709 SP1RelInstalled Version: SSDS StandardSQL Server Data Tools 10.3.21101.1Visual Studio 2010 Shell (Integrated) - ENU Service Pack 1 (KB983509) Also, the SQL Server Data Tools are up to date.SQL Server Data Tools 10.3.21101.1SQL Server Data Tools - Build Utilities 10.3.21101.1Microsoft SQL Server 2012 Data-Tier App Framework 11.1.2820.0
Product Language
Version
Category
Operating System
Operating System Language
Steps to Reproduce
Actual Results
Expected Results
Platform
Virtualization
Please wait...