Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
When I connect my database (SQL Server) as a data source, Power BI tells me that it is a SQL Server Analysis Service database, even though I don't want to connect an Analysis database at all, but just a normal SQL Server database.
My Code:
string dataSource = "LocalSQLServer";
dbWithDataSource.Model.DataSources.Add(new ProviderDataSource()
{
Name = dataSource,
Description = "A data source definition that uses explicit Windows credentials for authentication against SQL Server.",
ConnectionString = "Provider=SQLNCLI11;Data Source=MyDatabaseServer;Initial Catalog=MyDatabase;Integrated Security=SSPI;Persist Security Info=false;",
ImpersonationMode = Microsoft.AnalysisServices.Tabular.ImpersonationMode.ImpersonateAccount,
Account = @"AccountName",
Password = "password",
}
TOM is for Tabular Object Models, not sql server.
You're right. I have adjusted the initial post.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |