1 ase 装完后是乱码,解决办法:
将C:\sybase\shared-1_0\jre1.2.2\lib下的文件font.properties.zh.NT4.0
重命名成font.properties.zh.NT5.0
2 初始化设备 disk init
name="dev_card_data",
physname="c:/dev_card_data.dat"
size='500M'
3 删除设备
sp_dropdevice "dev_card_data"
然后要手工删除物理文件
物理文件可以在执行命令前用 sp_helpdevices "dev_card_data" 得到
4 备份恢复
dump database db_name to "c:/db_name.dump"
load database db_name from "c:/db_name.dump"
恢复后要用 online database db_name 来联机
5 导入导出
>bcp tmp.dbo.im_diction out "d:/im_diction.txt" -Si
ccarddistrict -Usa -Pa -Jcp850 -c -t"|"
>bcp tmp.dbo.im_diction in "d:/im_diction.txt" -Si
ccarddistrict -Usa -Pa -Jcp850 -c -t"|"
6 重命名数据库
use master
go
sp_dboption "olddb", "single user", true
go
use olddb
go
checkpoint
go
sp_renamedb "olddb", "newdb"
go
use master
go
sp_dboption "newdb", "single user", false
阅读(1041) | 评论(0) | 转发(0) |