This question already has an answer here:
while restoring the User DB from primary to secondary replica through query in cmd prompt and got following error message
Msg 262, Level 14, State 1, CREATE DATABASE permission denied in database 'master'.
RESTORE LOG is terminating abnormally.Msg 3013, Level 16, State 1, RESTORE LOG is terminating abnormally.
provided sa permission on the user, but still it did not work. where should i need to look.