Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: get value from stored procedure Post Reply Post New Topic
Author Message
flamboyan
Newbie
Newbie
Avatar

Joined: 22 Jun 2011
Location: Indonesia
Online Status: Offline
Posts: 1
Quote flamboyan Replybullet Topic: get value from stored procedure
    Posted: 22 Jun 2011 at 4:27pm
dear all..
 
I have a duty to create a report in CR XI and must get value from stored procedure.. but I dont know yet how to do that Cry... pleas give me some sugestions... thank you Smile
IP IP Logged
jkwrpc
Senior Member
Senior Member


Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Quote jkwrpc Replybullet Posted: 23 Jun 2011 at 7:24am
From the CR help file under Stored Procedures
-------------------------------
  1. Choose Options from the File menu.
    The Options dialog box appears.
  2. Click the Database tab and ensure that Stored Procedures is selected.
    Selecting "Stored Procedures" automatically displays any available stored procedures when you log on to an SQL database.
  3. In addition, you can specify Table name LIKE and Owner LIKE options if you wish.
    • "Table name LIKE" is based on the SQL LIKE clause. This option allows you to specify the kinds of table names you want to appear in the Choose SQL Table dialog box. You can use the underscore character (_) or the percent sign character (%) as wildcards with this function. The underscore character specifies any single character, while the percent sign signifies any character string. For example, DAV_ matches DAVE only, while DAV% matches DAVE and DAVID. Table name LIKE C% would display only those tables that have a table name beginning with the letter C.
    • "Owner LIKE" is also based on the SQL LIKE clause. The Owner LIKE option allows you to select the Owner (or Creator or Alias) of the table, not the table name itself. For example Owner LIKE C% would display only those tables that have an owner beginning with the letter C.

    Note: For more information on the SQL LIKE clause, refer to your SQL documentation.
  4. Click OK to exit the Options dialog box.
  5. On the Start Page, click Blank Report.
  6. Locate and select the SQL Server data source that contains the stored procedure you want to use.
  7. Click Next to go to the Connection Information dialog box.
  8. Enter the required information to log in.
  9. Click Finish.
  10. Highlight an SQL stored procedure in the Stored Procedures folder, and click the > arrow to add it to the Selected Tables list.
    The Enter Parameter Values dialog box appears.
  11. Highlight a parameter in the Parameter Fields list.
  12. Assign a value by typing into the Discrete Value box and then click OK.
    You are returned to the Database Expert.
  13. Click OK and create your report using the fields in the stored procedure.
The first time you refresh your report's data the parameter you entered is used. Only the records that satisfy that value are used in your report. Subsequent refreshing prompts for new parameter values.

----------------------------
 
Hope this is what you looking for.
 
Regards,
 
John W.
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.016 seconds.