Activate Application Role from Excel

  • Hi

     How Can I activate Application role from Microsoft Excel? I know sp_setapprole stored procedure but I don't know where I have to use this stored procedure in Excel?

     

    Thanks

    Khalid

  • Khalid,

    I would assume that you need to go to Tools->Macro->Visual Basic Editor

    You can use VBA from there. In VBA you may use ADO or something to connect to SQL Server. I did not do it myself with Excel but did with MS ACCESS.

    I will be interested if someone will advise us here how to do it when refreshing Pivot Tables

    Yelena

    Regards,Yelena Varsha

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

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