解决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.取整(小) ......
联接条件可在 from 或 WHERE 子句中指定,建议在 from 子句中指定联接条件。WHERE 和 HAVING 子句也可以包含搜索条件,以进一步筛选联接条件所选的行。
联接可分为以下几类:   ......
General Overview
FeatureSQL Server 2008 (RC0)MySQL 5.1/6PostgreSQL 8.3/PostGIS 1.3/1.4
OS
Windows XP, Windows Vista, Windows 2003, Windows 2008
Windows XP, Windows Vista, (haven't tested on 2008), Linux, Unix, Mac
Windows 2000+ (including Vista and 2003, haven't tested on 2008), Linux, Unix, Ma ......
select case when b.name is null and c.name is null then '合计' when b.name is null and c.name is not null then '小计' else b.name end as mtrname,
sum(a.number),c.name as cname from x_sell a join x_material b on a.mtr=b.fid join p_organi c on c.fid=a.customer
where a.stime>'2009-10-01'
GROUP B ......