Using CR with VB.net
Using code:
Dim objConnectionInfo As New ConnectionInfo
objConnectionInfo.DatabaseName = "FosterTrak"
objConnectionInfo.UserID = "LimitedAccount"
objConnectionInfo.Password = strPassword
objConnectionInfo.ServerName = strServerName
objConnectionInfo.IntegratedSecurity = False
objTables = objReport.Database.Tables
For Each objTable In objTables
objTableLogoninfo = objTable.LogOnInfo
objTableLogoninfo.ConnectionInfo = objConnectionInfo
objTable.ApplyLogOnInfo(objTableLogoninfo)
Next
Reports run on the development computer, but not in a different environment:
Server 2012 R2 with SQL Server Standard 2014 version
Windows 10 Client
When trying to run the report, the Database Login screen appears with the server name and user account appearing, but not the database name.
What am I doing wrong?