March 17, 2016 at 1:34 pm
I just found out in one of my SQL servers, when I create any new database, it will show an error:
Create failed for database
Profile name is not valid.
What could be wrong, I did not change any thing related with database mail, all of a sudden, I cannot create database any more.
I have sysadmin rights
Any ideas?
Thanks
March 17, 2016 at 1:37 pm
i think there is a server wide trigger that is sending an email if a database is created....and the end user creating the database does not have access to the mail profile, or the profile is misspelled.
check with select * from sys.server_triggers
Lowell
March 17, 2016 at 1:43 pm
Thank you, you are awesome.
Now I remember I created that procedure in one of the new server, forgot I have to change the profile name.
Without you know that, I will take forever to find the reason
Thanks much!
September 15, 2022 at 2:46 pm
Hey Lowell - I completely forgot about my logon trigger - it was giving me fits for hours! THANKS!
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply