SQL Server Analysis Services Tutorial
SQL Server Analysis Services Tutorial
SQL Server Analysis Services Tutorial
1. Creating a Database
1. Create car_transactions database. Open SQL Server Management Studio and execute the command
CREATE DATABASE car_transactions;
use car_transactions; CREATE TABLE Categories ( CatId ); INT IDENTITY(1,1) PRIMARY KEY, Category VARCHAR(50),
Surname VARCHAR(15),
3. Create a user
1. Open SQL Server Management Studio. 2. In Object Explorer, right-click the Logins folder and select New Login. 3. Type login name. 4. Select SQL Server authentification. 5. Type and confirm password. 6. Our password is simply. We clear Enforce password policy option. 7. Select default database.
8. Click Server Roles.tab and Select the appropriate role. 9. Click OK.
7. Creating dimesnions
Creating a customer dimension 1. In Solution Explorer, right-click the Dimensions folder and select New Dimension. 2. On the Welcome to the Dimension Wizard page, click Next. 3. Verify that Use An Existing Table is selected and click Next. 4. Select Customers from the Main Table list. 5. Select Surname from the Name Column list and then click Next. 6. Verify that the Cities and Countries tables are selected and click Next. 7. From the Available Attributes list, select all atributies and click Next. 8. On the Completing The Wizard page, type dimension name and click Finish. 9. Drag the Country attribute from the Attributes pane and drop to Hierarchies pane. 10. Drag the City and Cust ID attribute from the Attributes pane and drop it on <new level>. 11. In the Hierarchies pane, right-click the new hierarchy header and select Rename. Type Country Customers Hierarchy and press Enter. 12. In Object Explorer, right-click the Customers dimension, and select Process. Then click Yes. 13. In the Process Dimension dialog box, click Run. 14. In the Process Progress dialog box, click Close. Now that the Customers dimension has been builded. 15. You can preview the dimension - click Browser tab. Create another dimension: salsmen, cars and time. Watch, how to create all dimensions. Visit: http://www.learn-with-video-tutorials.com/analysis-services-video-tutorial-free Lear more, visit: http://www.learn-with-video-tutorials.com