溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

sync logins from ASE 12.5.4 to

發(fā)布時(shí)間:2020-03-06 04:08:17 來源:網(wǎng)絡(luò) 閱讀:545 作者:gawinw 欄目:關(guān)系型數(shù)據(jù)庫

[1] on ASE 12.5.4
select * into tempdb..loginaa16 from master..logins
go

then,use DBAartisan migrate tempdb..loginaa16 to HKCORP(80.17)'s tempdb

[2]on ASE 15.5
insert into master..syslogins and update sa and probe's password.

sp_configure 'allow updates',1
go

delete from master..syslogins where name not in ('sa','probe')
go

insert into master..syslogins(suid,status,accdate,totcpu,totio,spacelimit,timelimit,resultlimit,dbname,name,password,language,pwdate,audflags,fullname,srvname,logincount,procid,lastlogindate,crdate,locksuid,lockreason,lockdate)
select suid,status,accdate,totcpu,totio,spacelimit,timelimit,resultlimit,dbname,name,password,language,pwdate,audflags,fullname,srvname,logincount,procid,null,null,null,null,null from tempdb..loginaa16 a where not exists (select 1 from master..syslogins b where a.name=b.name)

go


update master..syslogins set password=(select password from tempdb..loginaa16 b where b.name='probe') where name='probe'
go

update master..syslogins set password=(select password from tempdb..loginaa16 b where b.name='sa') where name='sa'
go

drop table tempdb..loginaa16
go

sp_configure 'allow updates',0

go

 

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI