Giter VIP home page Giter VIP logo

find-when-server-restarted-using-tsql's Introduction

CLEVER DATA GIT REPO

使用TSQL查找服务器的重启时间

Find When Server Restarted Using TSQL

发布-日期: 2014年4月9日 (评论)

Contents

中文

你可以通过运行单个脚本来查看上次重新启动服务器的时间。 exec master..xp_cmdshell ‘systeminfo’ 如果发现报错,那么你可能需要通过sp_configure启用它,在这种情况下你可以运行以下命令: exec sp_configure ‘show advanced options’, ‘1’; reconfigure; sp_configure ‘xp_cmdshell’, ‘1’; reconfigure; 你的输出应该与下图类似。 另外,你能看到所有的OS系统信息。

English

You can see when the Server was last rebooted by running a single script. exec master..xp_cmdshell ‘systeminfo’ If you find an error; then you may need to enable this through sp_configure in which case you can run the following: exec sp_configure ‘show advanced options’, ‘1’; reconfigure; sp_configure ‘xp_cmdshell’, ‘1’; reconfigure; Your output should be similar to this. Additionally; you’ll see ALL the OS System Information


Logic

exec sp_configure ‘show advanced options’, ‘1’; reconfigure; sp_configure ‘xp_cmdshell’, ‘1’; reconfigure;
exec master..xp_cmdshell ‘systeminfo’

#

WorksEveryTime

Build-Info

Build Quality Build History
Build-Status
Coverage
Nuget
Build history

Author

  • 李聪明的数据库 Lee's Clever Data
  • Mike的数据库宝典 Mikes Database Collection
  • 李聪明的数据库 "Lee Songming"

Gist Twitter Wordpress


License

LicenseCCSA

Lee Songming

find-when-server-restarted-using-tsql's People

Contributors

licongmingdeshujuku avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.