MS SQL数据库服务介绍
服务类型 服务是一种在系统后台运行的应用程序。服务通常提供一些核心操作系统功能,MS SQL有下面一些服务。 服务类型 服务描述 SQL Server 提供数据的存储、处理和受控访问,并提供快速的事务处理 Analysis Server 为商业智能应用程序提供联机分析处理(OLAP
服务类型
服务是一种在系统后台运行的应用程序。服务通常提供一些核心操作系统功能,MS SQL有下面一些服务。
服务类型
服务描述
SQL Server
提供数据的存储、处理和受控访问,并提供快速的事务处理
Analysis Server
为商业智能应用程序提供联机分析处理(OLAP)和数据挖掘功能。
SQL Browser
将 SQL Server 连接信息提供给客户端计算机
FullText Search
快速创建结构化和半结构化数据的内容和属性
ReportServer
管理、执行、呈现、计划和传递报表。
SQL Agent
执行作业、监视 SQL Server、激发警报,以及允许自动执行某些管理任务。
SSIS Server
为 SSIS 包的存储和执行提供管理支持。
启动停止服务
您可以使用下列工具配置 Microsoft SQL Server 服务,以及启动、暂停或停止这些服务。当然像SQL Server Management Studio是不能启动SQL Server服务的,但是像
SQL Server代理等服务是可以启动的。
· SQL Server Management Studio
· SQL Server 配置管理器
· net 命令
· 服务
SQL Server Management Studio 和SQL Server配置管理器启动服务就不介绍了,这个很简单也很常用。下面简单说一下用net命令来启动服务。
net命令
启动 SQL Server 的默认实例
net start "SQL Server (MSSQLSERVER)"
或 net start MSSQLSERVER
启动 SQL Server 的命名实例
net start "SQL Server (GSP)"
net start MSSQL$GSP
使用启动选项启动 SQL Server
net start "SQL Server (MSSQLSERVER)" /f /m
或
net start MSSQLSERVER /f /m
默认启动选项
说明
-d master_file_path
master 数据库文件的完全限定路径(通常为:C:\Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\Data\master.mdf)。如果没有提供此选项,则使用现有的注册表参数。
-e error_log_path
错误日志文件的完全限定路径(通常为:C:\Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\LOG\ERRORLOG)。如果没有提供此选项,则使用现有的注册表参数。
-l master_log_path
master 数据库日志文件的完全限定路径(通常为:C:\Program Files\Microsoft SQL Server\MSSQL.n\MSSQL\Data\mastlog.ldf)。如果没有指定此选项,则使用现有的注册表参数。
其它一些启动选项来临时覆盖默认启动选项并启动 SQL Server 实例。
其他启动选项
说明
-c
缩短从命令提示符启动 SQL Server 时的启动时间。通常,SQL Server 数据库引擎通过调用服务控制管理器作为服务启动。由于从命令提示符启动时,SQL Server 数据库引擎不作为服务启动,因此请使用 -c 跳过此步骤。
-f
以最小配置启动 SQL Server 实例。在配置值的设置(如过度分配内存)防碍服务器启动时,这非常有用。
-g memory_to_reserve
指定 SQL Server 为在 SQL Server 进程之内,但在 SQL Server 内存池之外分配内存而保留的内存整数量 (MB)。内存池以外的内存是指 SQL Server 用于加载诸如下列项目的区域:扩展过程 .dll 文件、分布式查询引用的 OLE DB 访问接口以及 Transact-SQL 语句中引用的自动化对象。文件大小的默认值为 256 MB。
使用此选项可帮助优化内存分配,但仅限于物理内存超过操作系统设置的应用程序可用虚拟内存配置限制时。如果 SQL Server 的内存使用要求异乎寻常,并且 SQL Server 进程的虚拟地址空间都在使用,则对于这样的大内存配置适合使用此选项。对此选项的不当使用会导致 SQL Server 实例无法启动或遇到运行时错误。
除非在 SQL Server 错误日志中看到下列任何警告,否则应使用 -g 参数的默认值:
"Failed Virtual Allocate Bytes: FAIL_VIRTUAL_RESERVE
"Failed Virtual Allocate Bytes: FAIL_VIRTUAL_COMMIT
这些消息可能指示 SQL Server 尝试释放部分 SQL Server 内存池空间,以便为扩展存储过程 .dll 文件或自动化对象等项目留出空间。在这种情况下,香港服务器,可以考虑增加由 -g 开关保留的内存量。
使用小于默认值的值将增加缓冲池和线程栈中的可用内存量;而在不使用很多扩展存储过程、分布式查询或自动化对象的系统中,这种方法可改善需要大量内存的工作负荷的性能。
-h
对 32 位 SQL Server 启用 AWE 时为热添加内存元数据保留虚拟地址空间。32 位 AWE 需要热添加内存,但这将占用大约 500 MB 的虚拟地址空间并且使内存优化更加困难。对于 64 位 SQL Server,不是必需项。热添加内存仅适用于 Windows Server 2003 Enterprise Edition 和 Datacenter Edition。它还需要从硬件供应商处获得特殊的硬件支持。
-m

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Go language is an efficient, concise and easy-to-learn programming language. It is favored by developers because of its advantages in concurrent programming and network programming. In actual development, database operations are an indispensable part. This article will introduce how to use Go language to implement database addition, deletion, modification and query operations. In Go language, we usually use third-party libraries to operate databases, such as commonly used sql packages, gorm, etc. Here we take the sql package as an example to introduce how to implement the addition, deletion, modification and query operations of the database. Assume we are using a MySQL database.

Hibernate polymorphic mapping can map inherited classes to the database and provides the following mapping types: joined-subclass: Create a separate table for the subclass, including all columns of the parent class. table-per-class: Create a separate table for subclasses, containing only subclass-specific columns. union-subclass: similar to joined-subclass, but the parent class table unions all subclass columns.

2024 is the first year of AI mobile phones. More and more mobile phones integrate multiple AI functions. Empowered by AI smart technology, our mobile phones can be used more efficiently and conveniently. Recently, the Galaxy S24 series released at the beginning of the year has once again improved its generative AI experience. Let’s take a look at the detailed function introduction below. 1. Generative AI deeply empowers Samsung Galaxy S24 series, which is empowered by Galaxy AI and brings many intelligent applications. These functions are deeply integrated with Samsung One UI6.1, allowing users to have a convenient intelligent experience at any time, significantly improving the performance of mobile phones. Efficiency and convenience of use. The instant search function pioneered by the Galaxy S24 series is one of the highlights. Users only need to press and hold

Apple's latest releases of iOS18, iPadOS18 and macOS Sequoia systems have added an important feature to the Photos application, designed to help users easily recover photos and videos lost or damaged due to various reasons. The new feature introduces an album called "Recovered" in the Tools section of the Photos app that will automatically appear when a user has pictures or videos on their device that are not part of their photo library. The emergence of the "Recovered" album provides a solution for photos and videos lost due to database corruption, the camera application not saving to the photo library correctly, or a third-party application managing the photo library. Users only need a few simple steps

HTML cannot read the database directly, but it can be achieved through JavaScript and AJAX. The steps include establishing a database connection, sending a query, processing the response, and updating the page. This article provides a practical example of using JavaScript, AJAX and PHP to read data from a MySQL database, showing how to dynamically display query results in an HTML page. This example uses XMLHttpRequest to establish a database connection, send a query and process the response, thereby filling data into page elements and realizing the function of HTML reading the database.

How to use MySQLi to establish a database connection in PHP: Include MySQLi extension (require_once) Create connection function (functionconnect_to_db) Call connection function ($conn=connect_to_db()) Execute query ($result=$conn->query()) Close connection ( $conn->close())

Dogecoin is a cryptocurrency created based on Internet memes, with no fixed supply cap, fast transaction times, low transaction fees, and a large meme community. Uses include small transactions, tips, and charitable donations. However, its unlimited supply, market volatility, and status as a joke coin also bring risks and concerns. What is Dogecoin? Dogecoin is a cryptocurrency created based on internet memes and jokes. Origin and History: Dogecoin was created in December 2013 by two software engineers, Billy Markus and Jackson Palmer. Inspired by the then-popular "Doge" meme, a comical photo featuring a Shiba Inu with broken English. Features and Benefits: Unlimited Supply: Unlike other cryptocurrencies such as Bitcoin

A fast score query tool provides students and parents with more convenience. With the development of the Internet, more and more educational institutions and schools have begun to provide online score check services. To allow you to easily keep track of your child's academic progress, this article will introduce several commonly used online score checking platforms. 1. Convenience - Parents can check their children's test scores anytime and anywhere through the online score checking platform. Parents can conveniently check their children's test scores at any time by logging in to the corresponding online score checking platform on a computer or mobile phone. As long as there is an Internet connection, whether at work or when going out, parents can keep abreast of their children's learning status and provide targeted guidance and help to their children. 2. Multiple functions - in addition to score query, it also provides information such as course schedules and exam arrangements. Many online searches are available.
