I'm using the following query to grant db access but I keep getting the error:Error 21776:[SQL-DMO]The name 'mbcuser3' was not found in the Users collection. If the name is a qualified name, user [] to separate various parts of the name, and try again.use mastergoif not exists (select * from master.dbo.syslogins where loginname = N'mbcuser3')BEGIN declare @logindb nvarchar(132), @loginlang nvarchar(132) select @logindb = N'PracticeManager', @loginlang = N'us_english' if @logindb is null or not exists (select * from master.dbo.sysdatabases where name = @logindb) select @logindb = N'master' if @loginlang is null or (not exists (select * from master.dbo.syslanguages where name = @loginlang) and @loginlang <> N'us_english') select @loginlang = @@language exec sp_addlogin N'mbcuser3', 'mbcuser3', @logindb, @loginlang EXEC sp_grantdbaccess 'mbcuser3', 'mbcuser3'ENDGO