SQLSERVER服务 批处理文件
话说俺是个懒人。。。。
装完SQLSERVER2005 因为开机很慢 所以呢就把开机服务搞成手动的了
这样开机快了很多
可是问题也来了
每次要用SqlServer的时候要一个一个服务去开起来 。。。。
麻烦啊。。。。。
不比2000有个 开关的程序
所以上网找了下教程
自己写个批处理 自动启动服务
哇哈哈
突然觉得 只要有网络 语言不是啥大的障碍
写起来都差不多呀
哇哈哈
@echo off
echo 开启SQLSERVER服务按1
echo 关闭SQLSERVER服务按2
set /p ans=
if %ans%==1 goto sta
if %ans%==2 goto sto
:sta
echo 准备开启服务
net start SQLWriter
net start ReportServer
net start MsDtsServer
net start msftesql
net start SQLBrowser
net start MSSQLSERVEROLAPService
net start SQLSERVERAGENT
net start MSSQL$SQLEXPRESS
net start MSSQLSERVER
goto exit
:sto
echo 准备关闭服务
net stop SQLWriter
net stop ReportServer
net stop MsDtsServer
net stop msftesql
net stop SQLBrowser
net stop MSSQLSERVEROLAPService
net stop SQLSERVERAGENT
net stop MSSQL$SQLEXPRESS
net stop MSSQLSERVER
goto exit
:exit
echo over
相关文档:
昨天下午快下班的时候,无意中听到公司两位同事在探讨批量向数据库插入数据的性能优化问题,顿时来了兴趣,把自己的想法向两位同事说了一下,于是有了本文。
公司技术背景:数据库访问类(xxx.DataBase.Dll)调用存储过程实现数据库的访问。
技术方案一:
压缩时间下程序员写出的第一个版本,仅仅为了完成任务,没有从程 ......
In the latest installment of the SQL Server interview questions, we will outline questions suitable for a DBA interview to assess the candidates skills related to SQL Server system databases. In this tip, the questions are there to read, but the answers are intentionally hidden to really test your s ......
sqlserver中:
1 /*
2 1 * Description:对数据表进行行列转换
3 2 * Author:llf
4 3 * 调用说明:exec SP_RowChangeCol '学生成绩表','姓名','课程','分数','desc',0,0,'where 年级=''一年级'''
& ......
Mysql,SqlServer,Oracle主键自动增长的设置
1、把主键定义为自动增长标识符类型
在mysql中,如果把表的主键设为auto_increment类型,数据库就会自动为主键赋值。例如:
create table customers(id int auto_increment primary key not null, name varchar(15));
insert into customers(name) values("name1"),("nam ......