ms sql acces rights problem

I keep getting this error:

ERROR [main] [sf.hibernate.util.JDBCExceptionReporter] logExceptions SELECT permission denied on object 'BANDANA', database 'Confluence', schema 'dbo'.

even though my db user seem to have the correct permissions to acces the and select in the db. I am trying to get confluence working on a ms sql.


If i log into the database with the user i have created for it (wiki) i can select just fine on the database, so what am i missing?

1 answer

0 votes
Ann Worley Atlassian Team Jul 26, 2017

In the setup wizard, in the database connection URL, please make sure the database name is confluence_wiki, Confluence defaults to the database name "confluence" and it looks like that's the database referred to in the error message you posted:

SELECT permission denied on object 'BANDANA', database 'Confluence', schema 'dbo'.

It sounds like you already saw: Database Setup for SQL Server but please double check the steps if the issue doesn't turn out to be the database name.

I have the connection string as:




so that part should be correct, also it has created the database content just fine, its just after it creates everything it then fails?

Please review: Confluence Unable to Start Due to Insufficient Access Privileges to Database and let me know if you are seeing that error in the browser on startup.

Are you reading that connection URL from the confluence.cfg.xml in the root of the home directory?

I am not sure why your error message refers to a different database name. However, you report that the setup wizard is creating tables in the confluence_wiki database.

You mentioned you can run a select when you log into the database using the wiki user. What if you run this query that we know is for a Confluence table:

select * from CLUSTERSAFETY;


Sorry for the wait. (vacation)


it seems rename the database from confluence_wiki to just confluence made it work. Why is your code hardcoded to a db name, when the setup lets you pick a db name? and your install doc dosent say anything about the db has to be called confluence.


now the trial license has expired, are there any way to get a new trial license, so we can try it now we got it working?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,635 views 4 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you