sql操作

批量删除mysql 进程:

select concat('KILL ',id,';') from information_schema.processlist where user='local';



使用dos命令进行sqlserver 数据库附加:

osql -U sa -P sa
go

CREATE DATABASE NBCZ ON (FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\NBCZ.mdf') FOR ATTACH

go

  

posted @ 2018-11-26 14:51  xiaobudong  阅读(137)  评论(0编辑  收藏  举报