September 26, 2018 at 8:53 am
Hi,
The sproc uses linked server to connect to a database. And it executes well on SSMS. However,
on the front end, it is getting 'Error: Invalid Custom SQL query. Permission was denied.'
Thanks in advance,
September 26, 2018 at 8:56 am
keneangbu - Wednesday, September 26, 2018 8:53 AMHi,
The sproc uses linked server to connect to a database. And it executes well on SSMS. However,
on the front end, it is getting 'Error: Invalid Custom SQL query. Permission was denied.'
Thanks in advance,
And since we can't see anything you see there really isn't much we can do to help except take random shots in the dark while blindfolded. From the information provided, sounds like a permission issue related to the front end.
September 26, 2018 at 9:05 am
keneangbu - Wednesday, September 26, 2018 8:53 AMHi,
The sproc uses linked server to connect to a database. And it executes well on SSMS. However,
on the front end, it is getting 'Error: Invalid Custom SQL query. Permission was denied.'
Thanks in advance,
What Lynn said, plus... What is "the front end"? A custom application built by your developers? A vended solution? If the later, is it possible the vendor installed code that prevents customers from writing their own procs to use in the application?
September 26, 2018 at 9:15 am
Thanks. The front end is custom by developers. It was suggested that the stored procedure needs to be updated to use the linked server to connect to the database. There is my confusion, considering that it runs on ssms without error or warning.
September 26, 2018 at 9:19 am
keneangbu - Wednesday, September 26, 2018 9:15 AMThanks. The front end is custom by developers. It was suggested that the stored procedure needs to be updated to use the linked server to connect to the database. There is my confusion, considering that it runs on ssms without error or warning.
Then I would agree with Thom that the app is using a different credential than SSMS. But the error is weird (very non-SQL Server) and is probably coming from the app. You should have your Devs locate the source that creates that error message and verify what it really means before you assume a credential change will solve all problems.
September 26, 2018 at 9:26 am
Great! Thanks a lot.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply