In a SP I'm comparing a declared variable with empty string as below.
Declare @str1 nvarchar(max)
if(@str1 <> '')
true
else
false
I've deployed this sp through a database project and manually created a sp using ssms. During runtime, the sp created with dacpac is passing the condition and going to true and the one created with ssms is failing and going to false. Now I gave Script Procedure As => Alter to => new query window from object explorer for the sp created using dacpac and the same condition fails and the control goes to false.
Using this version:
Microsoft SQL Server 2016 (SP1) (KB3182545) - 13.0.4001.0 (X64) Oct 28 2016 18:17:30 Copyright (c) Microsoft Corporation Express Edition (64-bit) on Windows 10 Enterprise 6.3 (Build 19041)
: )