I would like to delete customers on multiple databases by specifying email field or just set the isadmin field to 0. I would do it manually but I have more than 200 databases to do this on and multiple customers to remove. I have been trying to write the SQL query incorporating the sp_msforeachdb but just cant get it to work I also have a query that sets isadmin to 0.
Update dbo.Customer
Set isAdmin = '0'
Where Email = 'email@email.com'
Any help on this would be greatly appreciated. Thanks!