Quantcast
Channel: SCN : All Content - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 757

ASE 15.7: Drop index syntax

$
0
0

Hello

 

I order to alter a column table I need to drop a index, but I  'can't find the correct syntax

 

1> ALTER TABLE [PSM.SAPSR3./BI0/F0SM_UPL_W]drop [KEY_0SM_UPL_W7]

2> go

Msg 4939, Level 16, State 1:

Server 'PSM', Line 1:

ALTER TABLE 'PSM.SAPSR3./BI0/F0SM_UPL_W' failed. You cannot drop column 'KEY_0SM_UPL_W7' because it is being used by an index. Drop the index '/BI0/F0SM_UPL_W~10' before dropping this column.

Msg 11050, Level 16, State 54:

Server 'PSM', Line 1:

Adaptive Server cannot process this ALTER TABLE statement due to one or more preceding errors. If there are no preceding errors, please contact Sybase Technical Support.

 

 

1> drop index [PSM.SAPSR3./BI0/F0SM_UPL_W].[/BI0/F0SM_UPL_W~10]

2> go

Msg 166, Level 15, State 6:

Server 'PSM', Line 1:

DROP INDEX does not allow specifying the database name as a prefix to the object name.

 

Help will be appreciate

 

Eric


Viewing all articles
Browse latest Browse all 757

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>