Hello,I have the following script to recreate a Login, User and Role:-- Set contextuse mastergo-- Delete loginif exists (select * from sys.server_principals where name = N'DBTest')drop login DBTestgo-- Create logincreate login DBTestwith password = 'fop62822022', check_policy = off,check_expiration = off, default_database = DBTest,default_language = english;go-- Set contextuse DBTestgo-- Delete userif exists (select name from sys.database_principals where name = N'DBTest')drop user DBTestgo-- Delete roleif exists (select * from sys.database_principals where name = N'Application' and type = 'R')drop role [Application]go-- Create usercreate user DBTest;go-- Create rolecreate role [Application];go -- Grant permissions to rolegrant select, insert, update, delete, execute on schema::dbo to [Application];-- Associate user to roleexec sp_addrolemember @membername = N'DBTest', @rolename = N'Application';go
But when recreating this project using the new VS 2010 Database projects I get the following error:Error 1: SQL03006: User: [DBTest] has an unresolved reference to Login [DBTest].What am I doing wrong?Thank You,Miguel