In WEB development often need to restart IIS, IIS to operate each time you open a lot of trouble, desktop add a bat file, as follows
iisreset / * restart the IIS service * /
NET STOP the SQLServerAgent / * start the SQLAgent service * /
NET STOP the MSSQLServer / * SQLSqlser stop service * /
NET Start the MSSQLServer / * start SQLSqlser service * /
NET Start the SQLServerAgent / * start the SQLAgent service * /
pause
Every time you need to restart IIS and SQL Server on the bat file by double-clicking on it, very convenient.
Before Sqlserver total memory is 550M, after the restart of memory 78M, (SQL Server accounts for a lot of memory)
【note】
As installed on the server is named SQL2005 instance, then the DOS command corresponding to the following:
net stop SQLAgent $ BB / * start an instance of BB in the SQLAgent service * /
NET STOP MSSQL $ BB / * start an instance of BB in SQLSqlser service * /
NET Start MSSQL $ BB / * start an instance of BB in SQLSqlser service * /
NET Start SQLAgent $ BB / BB * stop the SQLAgent service instance * /