Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to add additional database columns to the Cognos Model's Query Subject.

Posted on 2011-09-13
8
Medium Priority
?
973 Views
Last Modified: 2013-12-25
Hi,

I've published the model and packages already.  But I need to add more database columns to the existing Query Subject.

I tried using the ..Run Metadata Wizard, but it's creating another object itself by adding these new columns, instead of adding to the existing object.

Any help would be appreciated.

Thanks
0
Comment
Question by:kris norman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
8 Comments
 
LVL 8

Expert Comment

by:SNeupane
ID: 36530752
Right click on the query subject and create a 'Query Item', then edit the expression to what you need.
0
 

Author Comment

by:kris norman
ID: 36530990
But it throwing an error. Because the column I'm referring doesn't exist in the Query Subject yet.

QE-DEF-0030 Expression parsing error.
QE-DEF-0359 The query contains a reference to at least one object '[dbo].[tbl_PO_Facts_POReceipts].[POLineRef]' that does not exist.
0
 
LVL 8

Accepted Solution

by:
SNeupane earned 2000 total points
ID: 36531312
I see.
1st of all, cognos best practice suggests that you bring everything from database in your source view and then create business view from the source by selecting only what is needed.
In your case, double click on the query subject you want to add a column, then expand database tables and drag the column what you want to bring in.
Click OK and you'll see the new columns.
0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 

Assisted Solution

by:kris norman
kris norman earned 0 total points
ID: 36531566
It's silly one.  I removed the Select * from table in the Query Subject Definition and re-wrote the same query. It works.  

Always, thanks for your help
0
 

Author Comment

by:kris norman
ID: 36531670
I've requested that this question be closed as follows:

Accepted answer: 0 points for nooka8's comment http:/Q_27305807.html#36531566

for the following reason:

It worked
0
 
LVL 8

Expert Comment

by:SNeupane
ID: 36531671
So my 36531312suggestion helped.
May be 'assisted'?
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question