cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Update Commands & Dynamic Parameters

Former Member
0 Kudos

Hello all,

I'm currently using Crystal Reports 2008 for SYSPRO with SQL Server 2008 R2, which has brought me to this inquiry...

I would like to have a SQL Update Statement to run every time this report is opened for a particular job(s) that updates a value in a SQL table for the particular job(s). After much questioning and research, I've arrived at the conclusion of utilizing the Command feature in Crystal and adding one to my report, which might be exactly what I'm looking for.

The only unknown I'm dealing with is if it's at all possible to add the dynamic parameter from my report into the Command object which will run my SQL update statement.

Is this possible? Or is there another Crystal feature for this.

Any input will be greatly appreciated!

Accepted Solutions (1)

Accepted Solutions (1)

abhilash_kumar
Active Contributor
0 Kudos

Hi James,

Have a look at this blog from Jamie to understand how this could be started:

-Abhilash

Former Member
0 Kudos

Thanks Abhilash!

I tried experimenting with that link, but I'm still having difficulties passing my dynamic parameter I previously created to this command object in order to run the SQL update statement just for those particular jobs.

0 Kudos

HI James,

Syspro is an OEM Partner of ours so you should contact them to see if what you are doing will work in their environment.

Don

Former Member
0 Kudos

I've been in contact with them and one of their suggestions was to join this community and see what would be the most efficient way of doing this in Crystal (aside from command objects). I was able to make a successful SQL update statement within a command object (and accidentally ran it).

If there's any way I can pass the dynamic report parameter to my command object and/or create a command parameter and have the two parameters talk to each other, I would be all set.

Answers (0)