-
Book Overview & Buying
-
Table Of Contents
Tabular Modeling with SQL Server 2016 Analysis Services Cookbook
By :
Dynamic security uses additional information to filter the data to allow more flexibility than row-level security. In this recipe, you will create a security table that has two users, Bob and John. Then, by implementing dynamic security, the data that each is able to see will be shown.
Open the Crash_Data_Model in Visual Studio to bring up Model.bim. Then change your view to the Diagram view to see the table relationships. In this recipe, you will create a new security table and then implement dynamic security for these users by using the USERNAME() function. The USERNAME() function will return the DOMAIN\User from the account accessing the model.

Select the Model menu and the Existing Connections...:

Then select Open to bring up the existing connection information:

The default import wizard is set to Select from a list of tables and views to choose the data to import. Click on Next:

Select the DynamicSecurity_T table and...