question

Tsegish avatar image
Tsegish asked

View doesn't return any record

The View doesn't return any record but when i run the table that the view is dependent on, i get the records. any suggestions what i have been missing here? Thanks!

sql server 2017
3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

anthony.green avatar image anthony.green commented ·
What’s the definition of the view and table?
0 Likes 0 ·
Tsegish avatar image Tsegish anthony.green commented ·
it's a simple select statement. from another Database on the same instance. the table retrieves the data. am not sure if i answered your questions correctly.
0 Likes 0 ·
anthony.green avatar image anthony.green Tsegish commented ·

Nothing is simple when crossing databases.

Cross database ownership chaining is a royal pain.

Who owns the schema where the view lives?

Who owns the schema where the table lives?

Who owns the database where the view lives?

Who owns the database where the table lives?

What permissions do the person who’s selecting from the view have?

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.