check.asm
来自「用ASM实现Server及sql操作」· 汇编 代码 · 共 20 行
ASM
20 行
; 检查服务、数据源、存储过程、表格是否已经存在。
CheckSaveProc proc
.while TRUE
invoke CallIsStartSqlServer
.if eax == 0
.break
.endif
invoke Sleep,1000
.endw
invoke ShellSqlQueryUser,STEXT("SELECT COUNT(*) FROM sysobjects WHERE (name = 'by_CheckVer')")
.if eax == 0
invoke ShellSqlExecCommand,addr hProcCheckVer
.endif
invoke ShellSqlQueryUser,STEXT("SELECT COUNT(*) FROM sysobjects WHERE (name = 'by_CheckUser')")
.if eax == 0
invoke ShellSqlExecCommand,addr hProcCheckUser
.endif
ret
CheckSaveProc endp
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?