Replacing a function call in a stored proc

Posted on 2013-09-23
Medium Priority
Last Modified: 2013-09-24
Hello, I am trying to replace a function call in a stored proc since I do not have permission to run the function.

The script with the function call is in the file:

'Script with the function call to dbo.USF_GET_BOOKING_PREFERENCES'

The actual function body is the file:


Can you help me insert the latter into the former, so I do not make reference to the function at all.  I just want to be able to run it on the relevant database without issue.

Question by:onaled777
LVL 35

Assisted Solution

by:David Todd
David Todd earned 1000 total points
ID: 39516837

What is stopping you getting permissions to use this function?

LVL 20

Accepted Solution

Marten Rune earned 1000 total points
ID: 39517198
Your'e going in the wrong direction. Next step is a separate databsae since you dont have rights to the table/view etc etc whatever.

The right way is to ask to be granted execut on this function.

Regards Marten

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.

Join & Write a Comment

After restoring a Microsoft SQL Server database (.bak) from backup or attaching .mdf file, you may run into "Error '15023' User or role already exists in the current database" when you use the "User Mapping" SQL Management Studio functionality to al…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

607 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