O que estou fazendo de errado?
CREATE TABLE [dbo].[Dim_Marca]
(
[Cod_Marca] NVARCHAR(50) NOT NULL PRIMARY KEY,
[Desc_Marca] NVARCHAR(200) NULL,
[Cod_Categoria] NVARCHAR(50) NULL,
CONSTRAINT [FK_Dim_Marca_Dim_Categoria] FOREIGN KEY ([Cod_Categoria]) REFERENCES [Dim_Categoria]([Cod_Categoria])
Erros:
Severity Code Description Project File Line Suppression State Error SQL71501: Foreign Key: [dbo].[FK_Dim_Marca_Dim_Categoria] has an unresolved reference to object [dbo].[Dim_Categoria]. DataWareHouseSucos D:\Business Intelligence\Projetos\DataWareHouseSucos\DataWareHouseSucos\Tabelas\Dim_Marca.sql 6
Severity Code Description Project File Line Suppression State Error SQL71501: Foreign Key: [dbo].[FK_Dim_Marca_Dim_Categoria] has an unresolved reference to Column [dbo].[Dim_Categoria].[Cod_Categoria]. DataWareHouseSucos D:\Business Intelligence\Projetos\DataWareHouseSucos\DataWareHouseSucos\Tabelas\Dim_Marca.sql 6