Hi,
I am using sp_grantdbaccess to add a security account in a database. But if the account already exists, it will give an error: 'User or role 'VOIP' already exists in the current database'.
>EXEC sp_grantdbaccess 'George', 'Georgie'
Before calling 'sp_grantdbaccess' I want to check whether the account 'Georgie' already exists in the database.
How can I do it?
Thanks
Unnic