I create one SSDT project in VS2012, and then put the following script in the Script.PostDeployment.sql file. DECLARE @GuidList xml SET NOCOUNT ON; ;WITH XMLNAMESPACES (DEFAULT 'http://myurl')SELECT [dbo].[Contact].[Id]FROM [dbo].[Contact] CROSS APPLY @GuidList.nodes('(GuidList/Guid)') GuidList(g)WHERE (CAST(CAST(GuidList.g.query('text()') as nvarchar(50)) as uniqueidentifier) = [dbo].[Contact].[Id])But when I build the project, I get the error message:"SQL80001: Incorrect syntax near 'DEFAULT' ". See this case: http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/c0b47e5e-1809-4aee-abea-743c90886e14 In addition, I can get the script executed successfully in database project VS2010.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results