Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Issue with Database Login screen

$
0
0

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?


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>