I created report which will be used by many customers. Each customer has its own SQL Server database. So in report I implemented embedded data source which gets connection string from report parameter. This report is called from web application using report viewer component. Web application sets correct connection string as parameter. In connection string there is server name, database name and I would also like to include username and password.
I tried it with SQL login and it worked as expected. But I have problems when I use domain username and password. There exists domain user for every customer and it has read rights on its database. When I set connection string parameter as "Data source=serverName;Initial Catalog=dbName;User Id=mydomain\user;Password=password;" I always get "login failed for mydomain\user" error. Is this even possible to implement? If you store credentials securely on report server it is possible do use domain user and password so I assumed there should be possibility to also set it in connection string.