table of Contents
One, create a database in SSMS
Three, SSAS project deployment
One, create a database in SSMS
1. Open SSMS
2. Direct connection
3. Create a new database
4. Give a name and confirm
5. Right click "table", "new", "table"
6. Take the time dimension table as an example. After creating the Time-key and Date columns, right-click Time-key and set it as the primary key;
7. If it is a fact table, because it uses a combination of keys, hold down ctrl to select multiple keys, and then set the combination key. If you set the primary key one by one, you will get an error, because a table can only have one primary key.
If this prompt appears when saving:
Then you need to open "Tools"-"Options"
Click "Designer"-"Table Designer and Database Designer" and uncheck the "Prevent changes that require re-creation of tables".
In this way, there is no error when saving the table.
8. In order to increase the primary key automatically, modify the "(Identification)" of "Identification Specification" to Yes, and press Enter
9. Press ctrl+s to save the table, change the name, and confirm
10. Take the fact table as an example to create two columns of Time-key and Price. To set Time-key as a foreign key, right-click Time-key and select "Relationship".
11. Add
12. Click here
13. Select TimeDim for the primary key table, select Time-key for all columns, and confirm
14. Then save as in step 8. The table usually appears after refreshing. The other tables can be deduced by analogy.
15. If you want to insert data, right-click the table and select "Edit the first 200 rows"
Two, deploy the SSIS project
1. Open SSDT
2. New project
3. Select "Integration Services Project" of "Integration Services" of "Business Intelligence", you can change the name and confirm
4. Yes, SQL Server has to be configured, otherwise the SSIS project cannot be connected. Open SQL Server 2017 Configuration Manager
5. Find the "MSSQLSERVER Protocol" of "SQL Server Network Configuration", and enable the two disabled ones on the right.
It is best to restart these running servers.
6. Go back to the SSIS project, find the "Solution Explorer" in the upper right corner, right-click "Connection Manager", "New Connection Manager"
7. Select "OLEDB" and add
8. New
9. The server name is the name when SSMS logs in, the authentication is changed to "SQL Server authentication", the user name is "sa", and the password is the password set by the installation of SQL Server. Choose the database created in the first step. Test the connection, success!
10. Right-click the project and deploy
11. The next step
12. The next step
13. Fill in the server name and click Connect
14. At this time, switch to SSMS, right click "Integration Services Directory", "Create Directory"
15. Check "Enable CLR Integration", enter the password you set, and confirm
16. After creating SSISDB, continue to create a folder
17. Back to SSIS, click "Browse", select the folder you just created, confirm, and the next step
18. Deployment
19. Successful deployment! shut down
Three, SSAS project deployment
1. New project
2. Create a new data source
3. New
4. Test the connection. (Stepped on a pit, if you choose windows verification here, you will get an error when deploying later)
5. The next step
6. Select "Inherit"
7、finish
8. New data source view
9, the next step
10. Point all the watches to the right, the next step
11. Finish
12. Create a new cube
13. Use an existing table
14. Select all, the next step
15, the next step
16, the next step
17, complete
18. Double-click each table separately (5 tables must be operated)
19. Drag the three selected items to the left. This is one table, and the other tables have to be dragged like this.
20, deployment
21. Successful deployment!