You are viewing limited content. For full access, please sign in.

Question

Question

How to use Stored Procedure on the Lookup Rules

asked on February 28, 2022

How to use Stored Procedure on the Lookup Rules  I try to test on some data I create to see if I can get anything but I don't know what I'm doing wrong so, someone please how the lookup rules on stored procedure works??

Lookup Rules.JPG
Lookup Rules.JPG (55.04 KB)
0 0

Replies

replied on February 28, 2022 Show version history

When using a stored procedure, it cannot automatically detect the output columns the same way as it can with a table or view, so you have you enter them manually and they must match.

For example, if your SP returns a row from a table with columns A, B, and C

Then in the "with result set column" you would enter A, B, or C depending on which value you want.

That means you need to be aware of the exact names of the outputs so you can match them up correctly in order to get the results you want.

 

Additionally, unlike a Table or View, Stored Procedure require more access rights beyond "read" for execution in MS SQL Server, so it could also depend on what account you used for the data source.

For example, an account that has read-only access to the database won't be able to execute a stored procedure unless you provide additional rights to do so.

The reason MS SQL Server does this is that a Stored Procedure can contain/obscure more complex activities like updates or deletes, that shouldn't be available to read-only users.

4 0
replied on March 3, 2022

I think I understand is it possible to create or show me example???

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.