Register  ::  Login
 
Update : September 09, 2010
Google AdSense Minimize
  
Welcome to Asbuilt-DBA forum ! Minimize

Here you can find a community of professionals who work with INtools® (SPI) and want to interact and exchange information, including problems encountered, offer solutions, and raise new topics.

This forum is composed of two main sections:
1.      Discussions, which is an open discussion forum where you can talk about any related topic to INtools.
2.      FAQ section that offers a variety of questions and answers regarding INtools.
We hope that you will enjoy participating in this forum. Participation in the forum is free of charge.
If you want to start a new forum, please contact the Webmaster.
Add to Google
INtools is trademark of Intergraph corporation
Forum Groups Minimize
SearchForum Home
  Aggregated  Discussions  General  Incompatible da...
 Incompatible database structure
 
 11/13/2007 6:49:41 AM
User is offlinefba_sen57
70 posts
www.shell.com


Incompatible database structure

Hi...

Everytime I create a project, I have to run a sql to create view "serv". Below is the statement.

create VIEW SERV as select loop.loop_serv SERV, component.cmpnt_id,component.loop_id from component,loop where component.loop_id = loop.loop_id union select distinct '',0,0 from component,loop;

The statement is to allow a customize specification sheet to use the record from the component table. Once the sql is executed then I will login to the project in INtools and in the Instrument Specification module under the "Action" menu and "Specification Views", I will add new view as "SERV". I am still puzzle why sometime the view creation failed. It stated as "The specification view that you are trying to add is incompatible with your database structure". When this happen, I will drop the SERV view and rerun but creation still fail. I make a count from both the COMPONENT table and the SERV view. Their record is mismatch. Any idea how to solve this problem?

 

 11/13/2007 9:20:50 AM
User is offlineedgeledge
7 posts
www.brasstacksbn.com


Re: Incompatible database structure

You need to identify the problem tags first, (select component.cmpnt_id from component where not exists (select 'x' from serv where component.cmpnt_id=serv.cmpnt_id). Then find out if those tags have a loop_id=0 or not.

 

Drew

 11/13/2007 11:36:12 AM
User is offlineadmin
177 posts
5th


Re: Incompatible database structure

First of all if it’s asbuilt you need to create the view for each project.

The command is wrong you need to change it.

create VIEW SERV (cmpnt_id,loop_id,loop_serv) as select loop.loop_serv SERV, component.cmpnt_id,component.loop_id from component,loop where component.loop_id = loop.loop_id union select distinct '',0,0 from component,loop;

If you still get the same message probably because the system not except null in the loop_serv.


Ilan Hills ihills@asbuilt-dba.com www.asbuilt-dba.com
 11/13/2007 11:43:24 AM
User is offlinefba_sen57
70 posts
www.shell.com


Re: Incompatible database structure
Thank Edgeledge... then what shall I do with it. My count for SERV is often less than the COMPONENT. Please advise. Quite so frequent now, I encounter this kind of problem almost once a week because lots of projects been created due to the increasing forecast in these 3-4 coming years. You know everytime we created projects we need to run the sql to create views otherwise our specification will have the incompatible database structure again and again. Appreciate your assistant mate...
 11/13/2007 12:09:03 PM
User is offlinefba_sen57
70 posts
www.shell.com


Re: Incompatible database structure

Ilan, this view creation is for every new project. And not for As-Built.

  Aggregated  Discussions  General  Incompatible da...
Intools
 Search   Forum Home     

Search Engine Optimization and SEO Tools
My Google Pagerank