Solved

Verify Database - Database never stops changing

Posted on 2004-09-22
10
1,753 Views
Last Modified: 2008-01-09
I'm using a stored procedure to get data for my report. When I "Verify Database", I always get that the database file has changed and it's proceeding to fix up the report regardless of whether I've changed the stored procedure or not. If I do make a change, it doesn't appear to be picking up the change at all.

I'm using CR for .NET. I've tried setting the location again. I've tried deleting the .cs file and shutting down VS and restarting. I've tried creating a different report with the same stored procedure, but then the new report does the same thing. It appears to be related to the stored procedure, but I'm not sure why. I've had this happen with more than one stored procedure.

0
Comment
Question by:MovnOn
  • 6
  • 3
10 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 12129770
I assume you save the report after Verifying the database.

What is the stored procedure?

mlmcc
0
 

Author Comment

by:MovnOn
ID: 12129795
I have 2 stored procedures that are causing the same problem. One uses an input parameter and the other doesn't.

CREATE        Procedure dbo.sp_FldChkPktAEP
        @AEPID int
AS
SELECT Agency.Name,
       AEP.PINExmtPct
FROM AEP
INNER JOIN Agency ON AEP.AgencyID = Agency.AgencyID
WHERE AEP.AEPID = @AEPID


CREATE            procedure dbo.sp_FldChkPktImpClsChrs

AS

SELECT DISTINCT chrtypevalue.chrtypevalue,
       pinimpcls.pinid,
       chrtypegrp.chrtypegrpdsc,
       chrtype.chrtype,
       chrtypegrp.chrtypegrpid,
       chrtype.chrtypeid,
       impclschr.impclschrvalue,  
       chrtypevalue.chrtypevaluecode,
       ChrTypeValue.ChrTypeValue,
       chrtype.SurveyID,
       UOMRef.Dsc,
       'y' as currentval
from pinimpcls
inner join impcls on pinimpcls.impclsid=impcls.impclsid
cross join chrtype
inner join chrtypegrp on chrtype.chrtypegrpid=chrtypegrp.chrtypegrpid
INNER JOIN UOMRef ON ChrType.UOMID = UOMRef.RefID
inner join chrtypeentitycls on chrtype.chrtypeid=chrtypeentitycls.chrtypeid
inner join impclschr on impcls.impclsid=impclschr.impclsid
inner join chrtypevalue on impclschr.chrtypevalueid=chrtypevalue.chrtypevalueid and chrtypevalue.chrtypeid=chrtype.chrtypeid
where pinimpcls.pinid=30653  AND
chrtypeentitycls.chrtypeentitycode=1002 and
chrtypeentitycls.clstypeid=1001

UNION

SELECT vw_ChrTypeValues.ChrTypeValue,
       30653 as PINID,
       vw_ChrTypeValues.ChrTypeGrpDsc,
       vw_ChrTypeValues.ChrType,
       vw_ChrTypeValues.ChrTypeGrpID,
       vw_ChrTypeValues.ChrTypeID,
       NULL as ImpClsChrValue,
       vw_ChrTypeValues.ChrTypeValueCode,
       vw_ChrTypeValues.ChrTypeValueCodeDsc,
       vw_ChrTypeValues.SurveyID,
       vw_ChrTypeValues.UOMDsc,
       'n' as CurrentVal
FROM vw_ChrTypeValues
WHERE vw_ChrTypeValues.EntityCode = 'ImpCls' AND
      vw_ChrTypeValues.ClsCode = 'Res'






0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12129867
I don't see anythin really on the first procedure.

The second - The cross join may be causing Crystal trouble.

mlmcc
0
 

Author Comment

by:MovnOn
ID: 12129994
Not sure what difference it makes, but I'm using multiple stored procedures to get data for my reports. The 2nd procedure (the cross join) had been working fine. It wasn't until after several changes that I started having problems with it, though the changes were only in the where clause. The first stored procedure has been a problem since I first added it to my report.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 250 total points
ID: 12130142
So you are saying, you are using more than 1 data source for the report?

At least through CR8.5 Crystal recommends using subreports if you need more than 1 data source for the report.  I have read that CR9 allows multiple data sources under some circumstances.

This may help
http://support.businessobjects.com/library/kbase/articles/c2008838.asp

mlmcc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 100

Expert Comment

by:mlmcc
ID: 12130151
Since you are using stored procedures here is an article on Crystal and stored procedures.

http://support.businessobjects.com/communityCS/TechnicalPapers/storproc.pdf.asp

mlmcc
0
 
LVL 10

Expert Comment

by:anv
ID: 12130576
hi mlmcc

i'm getting the same problem too...
new tables  has been added to my database
and they are not being reflected in my reports...i'm using DSN for connectivity..
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12132700

To get the new tables you may need to
1.  Log off and back on the server
2.  Rebuild your connection (within CR not the DSN).  
3.  Verify the database

mlmcc
0
 

Author Comment

by:MovnOn
ID: 12279444
Thank you for your help mlmcc. I'm no longer working on the Crystal project and continued to have difficulties with sp's that Crystal said had changed that hadn't changed. Per my other question about CR.NET bugs, I suspect there's something in my registry from the previous installation of CR 10 that might be causing the problem. I wish I knew just what caused this to happen. But, I did find your links helpful and I think everyone that uses sp's with Crystal should read those tech papers.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 12281431
Glad I could help

mlmcc
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Crystal Reports Swap Columns 2 51
"A string is required here" error in Formula 7 44
Parameter transfer to cristal report 3 68
Business Object Server 2 27
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now