title: CREATE PROCEDURE permission denied in database 'master'
body: <p>I am creating procedure in sql server, My code is as follows</p>
  
  <pre><code>CREATE PROCEDURE GetRegistrationId
  ( 
    @MaxId INT OUTPUT 
  )
  AS
  BEGIN
    SELECT @MaxId = MAX(UserId)  FROM tblRegistration;
  return;
  END
  </code></pre>
  
  <p>but it gives error saying </p>
  
  <blockquote>
    <p>CREATE PROCEDURE permission denied in database 'master'.</p>
  </blockquote>