Locking In Crystal Reports

We are currently using Crysta Reports Server 2008 and are using the Infoview to distribute reports to various departments.  The issue is that we are getting locks in our data and I was wondering how I can enter "no lock" into the SQL statement that I can view in Crystal Reports XI to see if I can get round this problem.
LVL 2
meteorelecAsked:
Who is Participating?
 
mlmccConnect With a Mentor Commented:
>>In the SET DATA LOCATION and under the DATABASE menu how do I enter the SQL statement that I have modified?
Clcik DATABASE --> SET DATASOURCE LOCATION
In the lower panel
Navigate to the current connection
You should also see an ADD COMMAND option

If not then MAKE A NEW CONNECTION to the database
Use the ADD COMMAND option

mlmcc
0
 
mlmccCommented:
Are you sure the data is locking and it isn't an issue with viewing too many reports?
There are limits in Infoview on how many users can view reports simultaneously.

Crystal shouldn't lock the tables since it is read-only.

I don't think you can edit the SQL unless you are using a COMMAND as the datasource.

mlmcc
0
 
MIKESoftware Solutions ConsultantCommented:
I agree....however IF...you wanted to add the NO LOCK into the SQL...you can do it, but you'll need to extract the SQL from the report,...then go to the ADD COMMAND line at the datasource..and enter the SQL Script there...THEN...modify as needed.

I would not recommend that route,...but thought I would add this information as an FYI.....
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
mlmccCommented:
Be sure to try adding the command through the SET DATA LOCATION under the DATABASE menu.

If you simply add it, you will have to remap all the fields.

mlmcc
0
 
Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
In terms of the required syntax in the command, simple add (nolock) after each table name.

Select a, b, c, From Table1 (nolock) ...
0
 
meteorelecAuthor Commented:
Sorry for the delay the issue is definately with the data, when I look at the Activity Manager in SQL it is Sales Orders that are Awaitning A Command that is causing the issue.  When we used Crystal Reports V7 we never had this issue.
0
 
meteorelecAuthor Commented:
In the SET DATA LOCATION and under the DATABASE menu how do I enter the SQL statement that I have modified?
0
 
mlmccCommented:
Are you using Crystal Reports 2008?

mlmcc
0
 
MIKESoftware Solutions ConsultantCommented:
Is the lock occuring WHENEVER the report is run. OR is it only when run FROM CERTAIN WORKSTATIONS?

Could have something to do with the LOGIN CREDENTIALS that were originally setup in the original report. I would check there as well, you may need to reset them to use a DEFAULT standard SERVER LOGIN..instead of perhaps the WINDOWS login...????

0
 
meteorelecAuthor Commented:
I'm using Crystal XI
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.