命令行下:
D:\Backup\桌面>isql -Usa -P111111 -Sserver-name
1>sp_configure "upgrade version"
2>go
执行结果:
Parameter Name Default Memory Used Config Value
Run Value Unit Type
------------------------------ ----------- ----------- ------------
----------- -------------------- ----------
upgrade version 12500 0 12500
12500 id dynamic
(1 row affected)
(return status = 0)
可以看出版本号为12500 (sybase 12.5.4)
1>sp_configure "upgrade version",999
2>go
执行后结果:
Parameter Name Default Memory Used Config Value
Run Value Unit Type
------------------------------ ----------- ----------- ------------
----------- -------------------- ----------
upgrade version 12500 0 999
999 id dynamic
(1 row affected)
Configuration option changed. The SQL Server need not be rebooted since the
option is dynamic.
Changing the value of 'upgrade version' to '999' reduces the amount of memory
ASE uses by 7614 K.
(return status = 0)
这时版本号更改为999
1>sp_password '111111',NULL,sa
2>go
执行后结果:
assword correctly set.
(return status = 0)
这时将口令111111置为空
1>sp_configure "upgrade version",12500
2>go
这时版本号999更改为了原来的版本号12500
再去登陆测试一下:
D:\Backup\桌面>isql -Usa -P -Sserver-name
1>
登陆成功了!