Forum Discussion
Kavi_9907
11 months agoRegular Visitor
Can not connect to the sql server
I logged into my lap from my ad account (####\KavyaD) and login in to power bi using the same account. but due to a security concern, we have separate account to login into servers (####\KavyaDAU) . ...
- 10 months ago
Hi Kavi_9907 ,
Solution Steps:
Run Power BI Desktop as Administrator
- Right-click Power BI Desktop and select Run as Administrator
- This helps the application load system-level assemblies like System.EnterpriseServices
- Try importing your SQL data again
- Check Local Security Policy (Impersonation Rights)
- Open secpol.msc and go to Local Policies → User Rights Assignment
- Make sure your user account has the following rights:
- Impersonate a client after authentication
- Obtain an impersonation token for another user
- If these rights are missing, ask an administrator to grant them and restart your computer
- Clear Cached Credentials in Power BI
- In Power BI Desktop, go to File → Options and settings → Data source settings
- Find your SQL data source and click Clear Permissions
- Restart Power BI and reconnect to the data source
- Switch to SQL Authentication (if possible)
- If you're using Windows credentials or an alternate domain user, try switching to a SQL Server username and password
- This often avoids impersonation issues
- Repair or Reinstall .NET Framework
- Check that .NET Framework 4.x is installed and functioning
- Repair or reinstall if needed
- Optionally, verify that System.EnterpriseServices.dll is present in the system directories
- Update Power BI Desktop
- Ensure you have the latest version from the official Power BI website
- Older versions may not be compatible with some system components
Next Steps:
First, try running Power BI Desktop as administrator, as this often resolves the problem.
If that does not help, follow the steps for impersonation rights and .NET Framework repair.
If you still experience issues, collect logs and contact support with full details about your environment.
References:
v-tejrama
10 months agoCommunity Support
Hi Kavi_9907 ,
Solution Steps:
Run Power BI Desktop as Administrator
- Right-click Power BI Desktop and select Run as Administrator
- This helps the application load system-level assemblies like System.EnterpriseServices
- Try importing your SQL data again
- Check Local Security Policy (Impersonation Rights)
- Open secpol.msc and go to Local Policies → User Rights Assignment
- Make sure your user account has the following rights:
- Impersonate a client after authentication
- Obtain an impersonation token for another user
- If these rights are missing, ask an administrator to grant them and restart your computer
- Clear Cached Credentials in Power BI
- In Power BI Desktop, go to File → Options and settings → Data source settings
- Find your SQL data source and click Clear Permissions
- Restart Power BI and reconnect to the data source
- Switch to SQL Authentication (if possible)
- If you're using Windows credentials or an alternate domain user, try switching to a SQL Server username and password
- This often avoids impersonation issues
- Repair or Reinstall .NET Framework
- Check that .NET Framework 4.x is installed and functioning
- Repair or reinstall if needed
- Optionally, verify that System.EnterpriseServices.dll is present in the system directories
- Update Power BI Desktop
- Ensure you have the latest version from the official Power BI website
- Older versions may not be compatible with some system components
Next Steps:
First, try running Power BI Desktop as administrator, as this often resolves the problem.
If that does not help, follow the steps for impersonation rights and .NET Framework repair.
If you still experience issues, collect logs and contact support with full details about your environment.
References: