INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Reports Based New Store Procedure on SQL Server - Can I delete the Old Store Procedure

Reports Based New Store Procedure on SQL Server - Can I delete the Old Store Procedure

Reports Based New Store Procedure on SQL Server - Can I delete the Old Store Procedure

(OP)
I had a report in Crystal Reports based on a stored procedure SP_OLD. I had to write a new stored procedure SP_NEW and I’ve updated in Set Datasource Location. Now if I look in the Crystal Reports Database/Show SQL Query appears SP_New, as expected. At the time I couldn’t delete SP_OLD, because it was still use by other reports. Now I don’t use it anymore, because we don’t use any report based on it, so I deleted it from SQL Server. The question is: why in Crystal Reports in Database expert still appears SP_OLD?

RE: Reports Based New Store Procedure on SQL Server - Can I delete the Old Store Procedure

When you add a table or SP to a report, CR assigns an alias to that object. By default it is usually the name of the object. When you do a set location it points to the new object but usually keeps the old alias unless you change the alias. To change the alias of any table or SP you open the database expert and click on the table name. Then click it again (or hit F2) and you will be able to edit the name.

To see past the alias to the true object name you need to go to the Set Datasource Location window and go into the properties of that object. In this case my guess is that the object will look like SP_OLD (alias) but the properties will tell you it is actually SP_NEW.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guides to Formulas, Parameters, Subreports, Cross-tabs, VB, Tips and Tricks
http://www.kenhamady.com/

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close