Replacing a function call in a stored proc

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:

'dbo.USF_GET_BOOKING_PREFERENCES'

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.

Thanks
Script-with-the-function-call-to.SQL
USF-GET-BOOKING-PREFERENCES.SQL
onaled777Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David ToddSenior DBACommented:
Hi,

What is stopping you getting permissions to use this function?

Regards
  David
0
Marten RuneSQL Expert/Infrastructure ArchitectCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.