delete primary index
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


delete primary index Expand / Collapse
Author
Message
Posted 5/4/2006 4:50:56 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 2 days ago @ 1:34:40 PM
Posts: 35, Visits: 9
Hi trying to delete the primary index of a file that is created daily. However the index created is not using the right field and I would like to delete and recreate using a new field. we are using SAS that's why the problem of wrong index field

I’m receiving this error message when trying to delete the primary index

3525: The user cannot create or drop a PRIMARY index.
Output directed to Answer set window

DROP primary INDEX (WTN) ON vince_gabrielli.test;


Vincent Gabrielli
Post #4114
Posted 5/4/2006 5:06:13 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: PAC and SFT Members
Last Login: Yesterday @ 4:20:22 PM
Posts: 327, Visits: 504
The Primary Index is part of the table structure and not a separate object. You'll have to do something like create a new table, copy (INSERT/SELECT) the data, drop the old, rename.
Post #4115
Posted 5/5/2006 2:56:39 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 10/7/2008 6:20:30 PM
Posts: 136, Visits: 11
You can change PI definition of table if the table is empty.
You may want to refer SQL Reference: DDL for exact symantics.

Vinay
Post #4121
Posted 5/5/2006 4:51:39 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 2 days ago @ 1:34:40 PM
Posts: 35, Visits: 9
Thanks to all the replies, I have corrected the SQL script accordingly

Vincent Gabrielli
Post #4122
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 2:50am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.031. 7 queries. Compression Disabled.