You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.NET Framework (Windows-only) or .NET Core: .NET Core 8.0
Environment (local platform and source/target platforms): MacOS, Linux
Steps to Reproduce:
Apologies, I originally thought this was an SMO bug (logged here), but now I don't think so.
To recreate, create two databases, each with 1x procedure in, like so:
CREATE DATABASE LEFT
CREATE PROCEDURE GetServerName AS BEGIN SELECT @@SERVERNAME END
CREATE DATABASE RIGHT
CREATE PROCEDURE dbo.GetServerName AS BEGIN SELECT @@SERVERNAME END
You'll note, in database RIGHT, we've added the schema-identifier.
If you run DacFx/ScriptComparison against these two databases, it returns with 1x difference. It states that the procedure in LEFT has no schema, but the procedure in RIGHT has a schema.
This is odd.
According to the documentation for CREATE PROCEDURE, if no schema is provided, it will default one. Indeed, for database LEFT, if you check sys.procedures, the schema is dbo/schema_id=1.
Note: I have the same problem with views, UDFs, etc.
Question: Can someone please help me understand why ScriptComparison is returning a difference? To me, this sure looks like a bug.
Did this occur in prior versions? If not - which version(s) did it work in?
I haven't tried in prior versions.
Thank you!
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
Apologies, I originally thought this was an SMO bug (logged here), but now I don't think so.
To recreate, create two databases, each with 1x procedure in, like so:
You'll note, in database
RIGHT
, we've added the schema-identifier.If you run DacFx/
ScriptComparison
against these two databases, it returns with 1x difference. It states that the procedure inLEFT
has no schema, but the procedure inRIGHT
has a schema.This is odd.
According to the documentation for
CREATE PROCEDURE
, if no schema is provided, it will default one. Indeed, for databaseLEFT
, if you checksys.procedures
, the schema isdbo
/schema_id=1
.Note: I have the same problem with views, UDFs, etc.
Question: Can someone please help me understand why
ScriptComparison
is returning a difference? To me, this sure looks like a bug.Did this occur in prior versions? If not - which version(s) did it work in?
I haven't tried in prior versions.
Thank you!
(DacFx/SqlPackage/SSMS/Azure Data Studio)
The text was updated successfully, but these errors were encountered: