Hello,I created a login by these two TSQL commands:[code="sql"]CREATE LOGIN [test-login] WITH PASSWORD=N'mypassword, DEFAULT_DATABASE=mydb, DEFAULT_LANGUAGE=[us_english], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFFALTER LOGIN [test-login] ENABLE[/code]Then I dropped the login with:[code="sql"]CREATE LOGIN [test-login][/code]When I try to create the login again I get the error:[code="sql"]The server principal 'test-login' already exists.[/code]When I run the following line, i do get one record with the deleted login:[code="sql"]select * from sys.server_principals where name = 'test-login'[/code]Question: is it okay to delete the record in the sys.serverprinciples table? Or what else must I do?
↧