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

Change lock type on live table

$
0
0

I have 2 ASE Server. One is for live, one is for dev.

There is a table mytab, which lock type is DataPage. I want to change it to DataRow.

 

On dev server, I use tool to get the script to change the type is simple. like:

USE mydb

go

setuser 'dbo'

go

alter table mytab lock DATAROWS

go

 

but on live production, I get the script is different. It is trying to delete all pk, fk, sp, trigger related to mytab and create a another table mytab23434,....

What is the reason why it create a so messy script only for change the lock type.

 

So I want to know if it is safe just run alter table mytab lock DATAROWS on live.

 

If I use Sybase central and try to get the script to change lock type on both dev and live, they are simple and same:

 

USE mydb

go

setuser 'dbo'

go

alter table mytab lock DATAROWS

go

 

Because I am going to do it on live. So want to confirm it is safe just to run:

alter table mytab lock DATAROWS


Viewing all articles
Browse latest Browse all 757

Trending Articles



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