1.导入数据库
EXEC sp_attach_db @dbname = 'CBO',
@filename1 = 'D:zbxPattyCBO.mdf',
@filename2 = 'D:zbxPattyCBO_log.ldf'
2.shutdown 用法: Shutdown -s -t 0 -c "你被系统强制关机了!"
3.csc /out: binindex.dll /t:library index.cs
回车,就会在bin目录下生成与cs文件同名的dll文件
但是如果这个cs文件引用了bin目录下的另外一个dll文件如comman.dll,则应该这样输入命令:
csc /out: binindex.dll /r: bincomman.dll /t:library index.cs