Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2779

Re: Missing Indexes when running reports..

$
0
0

Hi Jim,

 

CR for VS is up to SP 15 now, you may want to update also, we did a few updates to the Btrieve drivers.

 

Ah, you said the ddf's are not in the same location. CR assumes they will be or the location of the data files is specified in the ddf's.

 

If they are not then when setting the connection info you should be doing this:

 

CrystalDecisions.Shared.TableLogOnInfo tLogonInfo;

 

foreach (CrystalDecisions.CrystalReports.Engine.Table rptTable in rpt.Database.Tables)

{

    tLogonInfo = rptTable.LogOnInfo;

    tLogonInfo.ConnectionInfo.DatabaseName = @"C:\ProgramData\Pervasive Software\PSQL\file.ddf";

    tLogonInfo.ConnectionInfo.ServerName = @"C:\ProgramData\Pervasive Software\PSQL\";

    tLogonInfo.TableName = rptTable.Name;

 

The location of the ddf's is the DatabaseName and the location of the data files is ServerName

 

So why this changed I have no idea... may have something to do with Pervasive 12

 

The reason it is slow is only because CR can't find the index.ddf.

 

Don


Viewing all articles
Browse latest Browse all 2779

Trending Articles



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