Refreshing View

  • Hi All,

    Can i refresh view through linked server? I have full rights to modify the view?

    Ex:ABC.MNC_DB.dbo.sp_refreshview 'view_ABC'

  • My guess would be that it depends on the way security is setup for the linked server. Is the linked server passing through your credentials or is it using a sql server login for everyone?

  • balu.arunkumar (5/20/2014)


    Hi All,

    Can i refresh view through linked server? I have full rights to modify the view?

    Ex:ABC.MNC_DB.dbo.sp_refreshview 'view_ABC'

    Assuming the linked server is set up with the appropriate options & permissions, then yes, you can refresh views via linked server using a statement like:

    EXEC [linkedserver].database.sys.sp_refreshview @viewname = N'your_view'

    In addition to the permissions your user has, also verify that the Server Options for the linked server allow for whatever SQL you are running on the target server.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply