- Expert Cube Development with SSAS Multidimensional Models
- Chris Webb Alberto Ferrari Marco Russo
- 643字
- 2021-08-13 18:02:57
Setting up a new Analysis Services project
The first step towards creating a new cube is to create a new Analysis Services project in SSDT. Immediately after doing this, we strongly recommend putting your new project into source control. It's easy to forget to do this, or not bother, because building a cube doesn't seem like a traditional development project, but you'll be glad that you did it when you receive your first request to rollback a change to a complex MDX calculation.
As you're probably aware, there are two ways of working with Analysis Services projects in SSDT:
- Project mode: This is where you work with a local Visual Studio project and deploy to your Analysis Services server only when you're happy with all the changes you've made
- Online mode: This is where you edit your Analysis Services database live on the server and commit changes every time you click on the Save button
You'll only be able to use source control software effectively if you work in the project mode. Therefore, it's a good idea to resist the temptation to work in online mode unless you're only making temporary changes to your cube, even though online mode often seems to be the most convenient way of working.
With all new Analysis Services projects, there are a few useful project properties that can be set. You can set project properties by right-clicking on the Project node in the Solution Explorer pane and selecting Properties, as shown in the following screenshot:

Here is a list of properties you may want to change at the project level, and the values you can set for them:
- Build: The following properties can be changed on the Build tab:
- Deployment Server Edition: If you plan to deploy Standard Edition in production, but you're using Developer Edition in development, you will want to set this property to Standard. This will make SSDT raise errors when you build a project if you accidentally use features that aren't available in the Standard Edition.
- Deployment: The following properties can be changed under the Deployment tab:
- Processing Option: This property allows you to process your database automatically whenever you deploy a project. The Default option will perform a Process Default, but in many cases, when you deploy a change that doesn't need any cube processing at all, a Process Default can still waste 10 or 20 seconds, and if you've made more substantial changes to an object you will still want to control when processing takes place. Setting this property to Do Not Process instead will stop all automatic processing. This means that you have to remember to manually process any objects yourself if you make changes to them, but it will save you time in the long run by preventing a lot of unintentional processing.
- Server: This contains the name of the server you're deploying to and defaults to
localhost
. If you're not developing on a local Analysis Services instance, then you'll need to change this anyway. Even if you are, it's a good idea to enter the name of the target server, rather than uselocalhost
, in case anyone wants to work on the project on another machine. - Database: This contains the name of the database that you're deploying to. It defaults to the name of the Visual Studio project. Of course, you can change it if you want your project and database to have different names.
We'll be looking again at how Visual Studio project configurations can help you when you need to deploy your project to your production environment in Chapter 10, Going in Production.
Note
It is a good idea to install BIDS Helper, an award-winning free community-developed tool that adds a lot of useful functionality to BIDS. You can download it from http://www.codeplex.com/bidshelper. We'll be referring to some of its features later on in this chapter.
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- Mastering Entity Framework
- 樂高機器人設計技巧:EV3結構設計與編程指導
- 技術領導力:程序員如何才能帶團隊
- Java Web開發技術教程
- 大學計算機基礎(第2版)(微課版)
- 微信小程序開發解析
- 焊接機器人系統操作、編程與維護
- Visual Basic程序設計實踐教程
- 區塊鏈底層設計Java實戰
- Android應用案例開發大全(第二版)
- Creating Stunning Dashboards with QlikView
- 智能搜索和推薦系統:原理、算法與應用
- Machine Learning for OpenCV
- Angular Design Patterns