I have a big .sqlproj project. In one .sql file, I have one table definition:
CREATE TABLE [dbo].[TableOne] ( [ColumnName] UNIQUEIDENTIFIER NULL ); GO CREATE UNIQUE CLUSTERED INDEX [TableOneIndex] ON [dbo].[TableOne]([ColumnName] ASC;
In another .sql file, I have another table definition:
CREATE TABLE [dbo].[TableTwo] ( [ColumnName] UNIQUEIDENTIFIER NULL ); GO CREATE UNIQUE CLUSTERED INDEX [TableOneIndex] ON [dbo].[TableTwo]([ColumnName] ASC;
Note that both indexes are called TableOneIndex . However, the project builds well and deploys well.
How can this be legal?
source share