The Adventure Works Model comes with 'Sales Person' entity inheriting 'Employees'. The Binding dropdown in the inheritance property for 'Sales Person' provides a 'FK_SalesPerson_Employee_SalesPersonID' choice.
The Refining a Report Model in Model Designer Tutorial Lesson 10: Inheriting Properties from Other Entities, walks you through the process of setting this inheritance, but the Binding dropdown, after you set InheritsFrom to Employee, provides only the (None) choice. Anyone know why?
I want to use this as the data from which to build a report model. As linked servers don't show up in the Data Source View wizard, I created a view in SQL Server:
create view MyExcel as select * from XL_SPS_1...Sheet1$
Okay, great, now the view shows up in the DSV wizard and I can create the data source view. However, when I create a new report model based on this data source view, the Report Model Wizard tells me at "Create entities for all tables" that I've got an error when it processes dbo_MyExcel that "Table does not have a primary key."
I assume this is where the identifying attributes for the entities in the report model are taken from, so I really can't go further. Does anyone have an idea as to how to add a primary key to a linked server (Excel) in SQL 2005? Can this be done? Other than importing spreadsheet data to a SQL table, how can I get around this?
I have created and deployed a data source (which uses "Credentials supplied by the user running the report") and a model which uses this data source. Also I have built a report using Report Builder and all works well.
Now I wish to use Visual Studio to build a report, so I'm trying to create a data source from my computer which the report should use and I want it to use the model on the remote server. In the Report Wizard I am using "Report Server Model" and the following connection string:
IHowever I can't make the credentials to work. I've tried them all with no luck. What username/password must I use? Because so far nothing of what I have tried works.
I've created dsv that contain all fields from table database. in the smdl I've remove some fileds due to security. All fields in the smdl do not contain drill.
Issue: When I created calculated field in the report builder the field has a link. When I clicked the drill I saw all the record data including field that not in the smdl.
Questions:
1) Can I remove the link from the calculated fields?
2) Can I prevent from users drill to fields that not in the smdl?
Is it possible to dynamically refresh the report model of the report builder?
could it even be using code with any of the interfaces?
When we add a table or add a column to the table in database , will the report model get refreshed automatically or do we need to do it externally. If so, can we use any of the objects and write a custom code in VB.
Semantic query execution failed. The 'PerspectiveID' custom property for the 'query' perspective is either not set or is not set to the string data type.
I have a report model that I am trying to deploy using report manager web service. A folder is created by the administrator to place all my SSRS reports. I deployed .rdl files using the "Upload file" function in "Report Manager". All the SSRS reports work fine but when I tried to upload .smdl file (report model file) using the Report Manager's "Upload file" function it gave me the following error message.
The permissions granted to user 'xxxxxxman' are insufficient for performing this operation. (rsAccessDenied)
Does this mean I only have permission to upload .rdl file but NOT .smdl file to my designated folder?
I'm having some difficulty linking a custome drilldown or clickthroug report to another report that I have already created in report builder. I followed a MSDN article found at http://msdn2.microsoft.com/en-us/library/ms345226.aspx but I cannot find the " Select a page area, select Drill-through reports" option in report manager. Does anyone have a better explanation on how to do this? I'm assuming that when you create the clickthrough report there has to some sore of filter on it that relates to the item of the clickthrough. I guess I'm I little confused, any help would be great. Thanks.
Hello, I've created a Report Model Project that can be used by Report Builder to generate ad-hoc reports. I'm trying to create a connection string in my Report Server Project that points to the Report Model Project data source view.
All I can do is create a regular datasource, which bypasses the metadata contained in the Data Source View.
Basically I want my Report Server Project and my Report Builder reports to leverage the same metadata. Is this possible? If so how do I get the connection string?
Is there an API or a way to consume a Report Model? I want to try and roll my own simple web-based / thin-client Report Builder without using the ClickOnce control.
Here is one scenario. There is category X which has subcategories A,B,C,D. A has 5 products and B has some 7 products, C 5 products and D has some 12 products. My problem is I need create a Report model where is if we select X all the list of subcategories and their products should be displayed. I.e if we select X then A 1
2 3
4 5 B 1 2 3 4 5 C and so on..........every thing should be displayed that are under category, i.e subcategories under that category and the products under each subcategory of that category.
Can anyone please help me out to create a Report Model to generate ad hoc reports
Hi is it possible to implement type inheritance in SQL server? and is it also possible to define user defined types's operators/functions in a level lower than SQL?
First of all I apologise if this is a dumb question. I am from a object-orientated background and am trying to convert a legacy application to have an SQL backend. My SQL knowledge is fairly basic...
I have an application where I am trying to maintain a list of recipies that are composed of base ingredients. No problem so far two tables Ingredients and a Recipie table coupled with another table Element which maintains the many-to-many relationship.
Ingredients ID (PK) Name Cost
Recipie ID (PK) Name
Element ID (PK) <-- maybe not necessary RecipieFK <-- the recipie this element belongs to Amount <-- the amount of the ingredient used (e.g. 200g) IngredientFK <-- the ingredient that makes up this element
My problem comes because Recipies can also form part of other recipies, for example the White Sauce is composed of Milk (ingrediant) Flour (ingrediant) Butter (ingrediant)
However a lasagne is composed of Minced Beef (ingrediant) Tomatoes (ingrediant) Lasagne Pasta (ingrediant) Onions (ingrediant) Basil (ingrediant) White Sauce (recipie)
In a OO environment this is simple, I have a base class Ingredient and a Recipie class derives from Ingredient. Each Recipie contains a list of Ingredients that make up the dish. As Recipie derives from Ingredient that list of ingredients can include other recipies.
The best SQL I've come up with so far is changing the Element table to be ID (PK) <-- maybe not necessary RecipieFK <-- the recipie this element belongs to Amount <-- the amount of the ingredient used (e.g. 200g) IngredientFK <-- an ingredient that makes up this element (can be NULL) ComplexIngredientFK <-- a recipie that makes up this element (can be NULL)
And to insist that one of IngredientFK or ComplexIngredientFK must be NULL and the other cannot be. This bothers me because it doesn't feel right. There's redundancy built into this design, you'd have to use tiggers to wipe one FK if the other was specified and it is crying out for a more elegant solution, but so far I have drawn a blank.
Can anyone suggest a more appropriate schema! Thanks in advance Paul
Hi, I am running SQL SERVER 2005 Enterprise Edition under Windows 2003 server. I would like to use table hierarchies (inheritance) in SQL 2k5 just as we do it in informix,PosgresSQL and other databases. Can we do the same in SQL 2k5 also? If yes, then how?
Is there a way to make a 'Battery' Table and create the 1 and 2 tables with inheritance in a way that when i change a field from smallint to int in the Battery Table , The same fields in the 1 and 2 tables will be replaced too?
I created a report model and deployed it. When I open the rpt builder on web I get the following error.
'The selected data source does not have and content available'
Seemed like it would be a easy issue, but I cannot retrieve any data in the rpt model. The datasource I'm using does work for rpts not associated with the rpt model. Any suggestions? It seems like I've missed a step. Thanks, Lisa
schema and a generated model out of it. Now I€™ve few report requirements which will be developed based on Report Model. These Reports needs aggregate of All similar activities and the hrs spent and it'll be shown with every employee. Like Employee Xyz has spent 14 hrs total on Sick Activity, which will be shown as
Now i need to know the approach to develop it like i'v to ways in my mind
- create 3 custom fields(Sickhrs,Maternityhrs,Workhrs) in the Employee Entity(model), so that managers can create reports like above by simple drag and drop
- leave model as it is.. just create more descriptive fields in all the three table and let managers do the activity grouping etc to develop report like above..
Which approach should i follow? Moreover can you point me to some conceptual info like how report model works..etc..
Hi, it's my first time for using report model as the datasource of reporting service. But I don't know how to build the query string to get data from the report model. Can anyone help me?
I am using Oracle 9.2.6.0 and SQL 2005 SP2. I have created a report model based on Oracle DB. I use .Net Providers/Oracel Client Data Provider driver for my data source to connect to Oracle. It works fine but the performance is a bit slow. Then I tried to use .Net Providers for OLEDBOracle Provider for OLEDB driver. When I deploy, I got the following error message: "System.OleDB".
I tried to use my last resort, which is Native OLEDBOracle Provider for OLEDB. When I deploy, I got the following error message: "Exception of type 'System.NotSupportedException' was thrown".
Anyone has this issue before? What is the best driver to use and what is the best approach in term of performance.
Hi, I've looked in vain for an answer to this, and it seems like it should be simple. Some new fields have been added to a table, and I need to add them to the Report Model. When I go to the data source view, the new fields do not show up in the table. Is there an easy way to get the new fields to show up, or do I need to delete the table (and of course the relationships), and then add it back. Thanks for any help.
I am using report model as my data source and when I preview my report, I got the following error message:
An error has occurred during report processing. (rsProcessingAborted) Cannot create command for data source 'xxxx'. (rsErrorCreatingCommand) An attempt has been made to use a data extension 'SQL' that is not registered for this report server. (rsSemanticQueryExtensionNotFound)
First, let me freely admit I know nothing about report models or how to deploy them. I was trying to learn by going through the tutorials. The creating part I get, but the deployment part seems to be over my head.
The error message I get is "A connection cannot be made to the report server http://hqjds02/Reports."
I don't understand why. Yeah...I get that it can't connect for some reason. Probably because I have messed things up somehow.
This is how I've got the deployment properties set:
TargetDataSourceFolder: Development (DV)/Data Sources TargetModelFolder: Development (DV)/Models TargetServerURL: http://hqjds02/Reports
In searching for an answer earlier I saw where someone wrote that I should be able to go to the URL and copy and paste it from IE. The actual URL is http://hqjds02/Reports/Pages/Folder.aspx?ItemPath=%2fDevelopment+(DV)&ViewMode=Detail . I tried it, but it didn't work.
Hi! I've created a report with Report Builder using a Model. I want to keep the same report, but I have to use another model (this model is almost the same as previous one, except that it has some extra tables). I tried to change my report's model from Report Manager (Report_Name -> Properties -> Data Sources), but it didn't work.
I was hoping to use the ExecutionLog (along with the RSExecutionLog_Update.dtsx SSIS Package). Closer investigation though shows that when a user executes the report built off the Model it gets logged with a ReportID Guid pointing to the root of the Catalog. Other than the Format being RGDI and the Source being AdHoc, there doesn't appear to be anyway to tell if the user ran this against ReportModel A or ReportModel B.
I'm new to Report Model and trying to create a new expression field with IF condition on related Role's attribute when i do this it gives error "The arguments to the following function are not valid: = (Equal to)" but if put direct Entity's column it works fine.. heres the expression
IF(Activity Type List Value Display Name = "Sick Day", 1, 0)
"Activity Type" is the Role(1--*) in Employee Table, and i'm adding this expression in the Employee Table
are there any sample models that i can download with some complex filters/expressions etc?
Question.... I don't even know if this is possible.
I work for a Education Service Center that deals with school distrcit data. I have created various report models that work fine for these districts. Is it possible to pass parameters or filter out data in report models...Lets say I have ReportModel1 and this contains all campuses....and if jdoe logs in I only want him to have access to campus1.
This application I have created is in ASP.NET and grants permission at sign on based on their Active Directory memberships to groups. They can see the canned reports via a reportviewer control and I pass parameter values for campuses to filter it out accordingly.
They access report builder via a menu button linked to http://servername/ReportServer/ReportBuilder/ReportBuilder.application I was wonder if their is code or method of passing a parameter or filter type to accomplish the same here?
I could always create report models for each campus....
In a Model designer when you select and Entity you have list of Attributes on the right side. There you have the option to add new "Folder", "Source Field", "Expression", "Role" and "Filter".
Can anyone explain in a bit detail what this filter can be used for. Can it be used to filter data from underlying entity? (I am not looking for SecurityFilter)
I am working on Microsoft SQL Server 2005 - 9.00.3027.00