解决SQL Server 1069错误:登录失败
SQL Server 服务由于登录失败而无法启动
1.症状
在重新启动 SQL Server、SQL Executive 或 SQL Server Agent 时,可能无法启动该服务,并显示以下错误信息:
Error 1069:The service did not start due to a logon failure.
或者
错误 1069:由于登录失败而无法启动服务
2.原因
SQL Server、SQL Agent 或 SQL Server Executive 启动服务帐户的密码不正确,因为密码可能已被更改了。
3.替代方法
若要解决此问题,请在 SQL Server 主机的 Microsoft SQL Server 服务帐户中键入正确的密码。
1) 若要在 Microsoft Windows 2000 Server 和 Microsoft Windows XP 中更正该密码,请按照下列步骤操作:
1.
单击开始
,指向设置
,然后单击控制面板
。
2.
双击管理工具
,然后双击服务
。
3.
双击 MSSQLSERVER
,然后单击登录
选项卡。
4.
在密码和确认密码
文本框中键入正确的密码,然后单击确定
。
2) 若要在 Microsoft Windows NT 4.0 中更正该密码,请按照下列步骤操作:
1.
单击开始
,指向设置
,然后单击控制面板
。
2.
双击服务
,然后双击 MSSQLSERVER
。
3.
在密码和确认密码
文本框中键入正确的密码,然后单击确定
。
注意:
通过 Services 小程序更改该密码使 SQL Server 可以成功重新启动;但是,如果安装了 Microsoft 搜索(全文搜索服务),则它要求通过 SQL 企业管理器 (SEM) 进行随后的密码更改。
以下一节摘自 SQL Server 2000 联机图书:
“After changing the SQL Server service account
information in Control Panel, you must also change the SQL Server
service account in SQL Server Enterprise Manager.This allows the
service account information for Microsoft Search service to remain
synchronized as well. Important:Although the Microsoft Search
service is always assigned to the local system account, the full-text
search engine tracks the SQL Server service account in
Windows.Full-text search and failover clustering are not available if
Windows password changes are not reset using SQL Server Enterprise
Manager.”
(在控制面板中更改 SQL Server 服务帐户信息后, 您还必须在 SQL Server 企业管理器中更改 SQL
Server 服务帐户. 这样, 用于 Microsoft 搜索服务的服务帐户信息也会保持同步。重要说明: 尽管将 Microsoft
相关文档:
SQLServer和Oracle是大家经常用到的数据库,在此感谢作者总结出这些常用函数以供大家参考。
数学函数:
1.绝对值
S:SELECT abs(-1) value
O:SELECT abs(-1) value from dual
2.取整(大)
S:SELECT ceiling(-1.001) value
O:SELECT ceil(-1.001) value from dual
3.取整(小) ......
ORDER BY 排序
ASC 升序(默认)
DESC 降序
select * from s_emp order by dept_id , salary desc
部门号升序,工资降序
关键字distinct也会触发排序操作。
select * from employee order by 1; //按第一字段排序
NULL被认为无穷大。order by 可以跟别名。
select table_name ......
相信大家都在当心数据库的丢失,这也是每个开发者头痛的一件事件,因为正在运行的服务器及数据库也在这台服务器上。如果服务器崩溃,那么所有的数据
都不存在了,就算是你在你的机子上做了备份,那也是没有用的,为什么会这样说主要是因为本机是向互联网公开的,所以出事故的概率就比较高。最终我们可以利
用局域 ......
配置使用 SQL Server提供程序
<configuration>
<system.web> <-- 更改提供程序配置: -->
<membership defaultProvider="AspNetSqlProvider" />
</system.web>
<membership> <--配置提供程序 -->
<prov ......