Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: table connectivity does not work Post Reply Post New Topic
Author Message
malkie
Newbie
Newbie
Avatar

Joined: 09 May 2007
Location: United States
Online Status: Offline
Posts: 2
Quote malkie Replybullet Topic: table connectivity does not work
    Posted: 09 May 2007 at 2:31pm

I am applying the logon information to the report in my application.  ON my development machine the information displays fine.  On the production machine the Table.TestConnectivity Method always fails.  Then the logon screen is displayed with the database, username, and password filled in - but the server is empty and read only.  After this the logon always fails.  Why would the server be blank?  and what could be different on the production machine?

I know that the connection works from the production machine because I am using it for other things in the application also.
 
 

ConnectionInfo ci = new ConnectionInfo();

ci.ServerName = server;

ci.DatabaseName = db;

ci.UserID = id;

ci.Password = pass;

 

....

 

TableLogOnInfo li;

// for each table apply connection info

foreach (Table tbl in cr.Database.Tables)

{

li = tbl.LogOnInfo;

li.ConnectionInfo = ci;

tbl.ApplyLogOnInfo(li);

// check if logon was successful

if (tbl.TestConnectivity())  --THIS FAILS

{

// drop fully qualified table location

if (tbl.Location.IndexOf(".") > 0)

{

tbl.Location =

tbl.Location.Substring(tbl.Location.LastIndexOf(".")

+ 1);

}

else tbl.Location = tbl.Location;

}

IP IP Logged
malkie
Newbie
Newbie
Avatar

Joined: 09 May 2007
Location: United States
Online Status: Offline
Posts: 2
Quote malkie Replybullet Posted: 11 May 2007 at 11:10am
In case this helps anybody else out.
 
You need to install SQL Native Client on the machine if it is not already installed. Clap
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 11 May 2007 at 11:28am
Thanks for the update. I need to do more research on the SQL Native Client to see how it effects Crystal Reports.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.063 seconds.