SQL server 2005 开始安装后sa无法登录问题
1.使用Management Studio Express,用“Windows身份验证”登录,选中SQL服务器名,右击鼠标选择属性,在服务器属性选项页面,选择“安全性”,将服务器身份验证由“Windows身份验证”改为“SQL Server和Windows身份验证”,单击确定。
2.使用SQL Server 2005外围应用配置器,选择“服务和连接的外围应用配置器”,选SQL Express-->Database Engine-->服务,先停止,再启动,重启SQL Server服务器。
3.再回到Management Studio Express,选择“安全性”-->登录名-->sa,右击鼠标,在登录属性-sa页面,选择状态,将登录由“禁用”改为“启用”(此时可设置sa登录密码或取消登录密码,在常规选项中),单击确定。
附加: sa 密码修改命令, sp_password Null,'新密码','sa'
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zhuxianzhao/archive/2008/07/08/2624314.aspx
相关文档:
SQL Server 数据库管理常用的SQL和T-SQL语句
1. 查看数据库的版本
select @@version
2. 查看数据库所在机器操作系统参数
exec master..xp_msver
3. 查看数据库启动的参数
sp_configure
4. 查看数据库启动时间
select convert(varchar(30),login_time,120) from master..sysprocesses where spid=1
查看数 ......
搞了很久。。终于发现原来是权限问题。。
2行命令搞定
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
经典了。。。
魔力私服网页端搞定咯~~ ......
Update Channel set Unit ='mg' ,
RunUpThreshold='10' ,
RunDownThreshold='10' ,
SafetyUpThreshold='10' ,
SafetyDownThreshold='10'
where Bridge='001' and DeviceCode='AS'
and SensorCode='001' and Supplement='N'
set : ','
where: and ......
哎,还是上周的事情了,csdn的博客最近咋老是打不开呢!
基本语句:Alter table 表名 drop Column 字段名
另单单是这样是不行滴,还要删除对应的关系滴。下面就把查找到的那篇文章引用下吧!
原文地址:http://hi.baidu.com/lisky119/blog/item/3c348c082573949c0a7b82d1.html
SET ANSI_NULLS ON
GO
SET QUOTED_IDENT ......