Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    SQL Server indexes not being created using CREATE FILE

Read-Only Read-Only Topic
Go
Search
Notify
Tools
SQL Server indexes not being created using CREATE FILE
 Login/Join
 
Member
posted
First, I am pretty new to IBI products and we had a professional services consultant helping us out. Unfortunately, he is no longer on the project. So, hopefully, this will make sense...

There is a synonym created for a SQL Server table. Besides the columns, there are also 3 indexes in the synonym. Index1 is a unique index and it only had one column (the primary key column). Index2 is non-unique and it has 3 columns in it. Index3 is also non-unique and it has 1 column in it.

If I right-click on the synonym and select Data Management and then Recreate DBMS table, all three indexes are created. Index2 and Index3 are named that, but Index1 is actually named differently. Something like PK__ then part of the table name and then __ and some other characters.

However, the process that was written by the professional services consultant actually uses CREATE FILE synonym_name DROP. When this runs, the table is created and so is Index1 (again, with the PK__ name). However, the other indexes are not created.

Any idea why the other indexes are not created?

Thanks


iDM 7.7.05
WebFOCUS 7.7.05
Windows, All Outputs
 
Posts: 11 | Registered: May 25, 2012Report This Post
Guru
posted Hide Post
While your signature shows WebFOCUS 7.6 it appears you are using a later release.

While the primary key column(s) have always been identified as having indexes. However identification of additional columns was a new feature added in Release 7.7.04. That's why the names are different.


In WebFOCUS New Features 7.7.04

it states:

Support Indexed Columns in Create Synonym
A synonym for an RDBMS table now indicates column(s) with a Primary Key or INDEX. This information is added by CREATE SYNONYM. When CREATE FILE is used for the synonym,the table is created with the INDEX(ES) or with Primary Key.

While that's true when the command is issued from the Data Management Console or the Web Console, when run from a procedure you need:

CREATE FILE application/synonym WITHINDEXES DROP


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Member
posted Hide Post
Clif,

Sorry about having the wrong version in the profile. I think my account was created last May before our products were installed. When they eventually were installed, we were on 7.7.04.

I added the WITHINDEXES to the process and it worked like a charm.

Thanks for the quick response. I really appreciated it.


iDM 7.7.05
WebFOCUS 7.7.05
Windows, All Outputs
 
Posts: 11 | Registered: May 25, 2012Report This Post
Member
posted Hide Post
I'm on 7.7.04 and I tried the following:
01/31/2013 13:43:30 LOOPBACK CREATE FILE TMNT_CEPM_JOB_CD_QLFR_CMPNT_ID_RQMNT WITHINDEXES DROP
01/31/2013 13:43:30 LOOPBACK END
01/31/2013 13:43:30 LOOPBACK -RUN

That did NOT work. In the process we have with Data Management it uses the .mas file as input. If the PK field does NOT have a MISSING=ON, the i PK is generated as discrible in the case which I call a goofy index. If the .mas file has the ,MISSING=ON, then it is created correctly as we would like to see it.

The issue is how do I generate the .MAS file with that MISSING=ON in it?


7.7.3
Windows 64
 
Posts: 4 | Registered: February 14, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    SQL Server indexes not being created using CREATE FILE

Copyright © 1996-2020 Information Builders