Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
adilahmed
Frequent Visitor

Microsoft.Data.SqlClient.SqlException(0x80131904):User does not have permission Unable to create dbs

Hi,

I am trying to configure Reporting Services manager and creating database on a different server

I am using Domain Account as service account when i create databases i got below error

 

Microsoft.Data.SqlClient.SqlException (0x80131904): User does not have permission to perform this action.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at Microsoft.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Microsoft.ReportingServices.Common.DBUtils.ApplyScript(SqlConnection conn, String script, ICommandWrapperFactory commandWrapper)
at Microsoft.ReportingServices.Common.DBUtils.ApplyScript(String connectionString, String script)
at ReportServicesConfigUI.SqlClientTools.SqlTools.ApplyScript(String connectionString, String script)
ClientConnectionId:a1cc11d70bf8a0c567
Error Number:15247,State:1,Class:16

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @adilahmed 

When creating the database, you are logging in with a SQL Server user connection at this step:

vfenlingmsft_0-1728374027223.png


This user needs to have the sysadmin role. If user does not have a sysadmin role, the following error will occur:

vfenlingmsft_0-1730274332407.png

 

Please login to SQL Server with sa or sqladmin.

Go to Object Explorer.
Expand Security --> Logins.

You can find the currently logged in user and give it the “sysadmin” role:

vfenlingmsft_1-1728374095512.png


After creating the database you have the option of removing the sysadmin role from this user.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
adilahmed
Frequent Visitor

Hi thanks for your reply but i did not found any where in Installing PowerBI  server documentation by microsoft, 

https://learn.microsoft.com/en-us/power-bi/report-server/install-report-server#download-power-bi-rep...

 

is you have any reference that service account require sysadmin role and is this permission require for service account only for initial configuration until reporting service database creation or it reqire permanently?

Anonymous
Not applicable

Hi, @adilahmed 

I am glad to help you.

 

Please login to SQL Server with sa or sqladmin.

Go to Object Explorer.
Expand Security --> Logins.

You can find the currently logged in user and give it the “sysadmin” role:

vfenlingmsft_1-1728366161030.png
Or
Right Click on Login and select "New Login":

vfenlingmsft_0-1728366029025.png

Click on search and find that windows user which you are trying to install PBIRS.
Under Server Role on the Left side assign this user as "sysadmin" role:

vfenlingmsft_1-1728366161030.png

 

In Report Server Configuration manager:

vfenlingmsft_4-1728366824781.png

 

Here are some official documentations, hope them help:

Server-level roles - SQL Server | Microsoft Learn

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hi Is this permission require permanently i did not found any reference in installing PowerBI server

https://community.fabric.microsoft.com/t5/Report-Server/Microsoft-Data-SqlClient-SqlException-0x8013...

Anonymous
Not applicable

Hi, @adilahmed 

When creating the database, you are logging in with a SQL Server user connection at this step:

vfenlingmsft_0-1728374027223.png


This user needs to have the sysadmin role. If user does not have a sysadmin role, the following error will occur:

vfenlingmsft_0-1730274332407.png

 

Please login to SQL Server with sa or sqladmin.

Go to Object Explorer.
Expand Security --> Logins.

You can find the currently logged in user and give it the “sysadmin” role:

vfenlingmsft_1-1728374095512.png


After creating the database you have the option of removing the sysadmin role from this user.

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.