SQL Server 2005启用sa账号
SQL Server 2005启用sa账号
启用sa用户和远程连接
菜单Start->Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager
选中SQL Server 2005 Network Configuration
在右边的TCP/IP上点右键,enabled
菜单Start->Microsoft SQL Server 2005->SQL Server Management Studio Express
登录对话框直接点connect进去
在左边根结点(yourpcSQLEXPRESS)上点右建
选properties
左边选security,右边选中SQL Server and Windows Authentication Mode
工具栏第一个按钮new query
在查询窗口中执行
exec sp_password NULL,'yourpassword','sa'
alter login sa enable
关闭SQL Server Management Studio Express
菜单Start->Microsoft SQL Server 2005->Configuration Tools->SQL Server Configuration Manager
选中SQL Server 2005 Services
在右边的SQL Server(SQLEXPRESS)上点右键,Restart
用sa登录
菜单Start->Microsoft SQL Server 2005->SQL Server Management Studio Express
登录对话框Authentication选择SQL Server Authentication
点connect
如果不出意外,应该可以成功登录。
从 SQL Server Management Studio 重新启动 SQL Server
在对象资源管理器中,右键单击您的服务器,再单击“重新启动”。如果运行有 SQL Server 代理,则也必须重新启动该代理。
使用 Transact-SQL 启用 sa 登录帐户
执行下列语句以启用 sa 密码并分配一个密码。
复制代码
ALTER LOGIN sa ENABLE ;
GO
ALTER LOGIN sa WITH PASSWORD = '<password>' ;
GO
使用 Management Studio 启用 sa 登录帐户
在对象资源管理器中,依次展开“安全”、“登录名”,右键单击“sa”,再单击“属性”。
在“常规”页上,您可能需要为 sa 登录名创建密码并确认该密码。
在“状态”页的“登录”部分中,单击“启用”,然后单击“确定”。
Section 2
要让developer 可以通过network login 到SQL Server 2005就要进行如下cofiguration。
Start Menu -> Microsoft SQL Server 2005 -> Configur
相关文档:
select count(1) from dictionary;
select * from dba_data_files;
select count(1) from dba_objects t where t.owner='BESTTONE';
select * from dba_tablespaces t where t.tablespace_name='BESTTONE';
select count(1) from dba_tables t where t.owner='BESTTONE';
select t.table_name,t.comments from diction ......
第一部分:oracle pl/sql实例练习(1)
一、使用scott/tiger用户下的emp表和dept表完成下列练习,表的结构说明如下
emp员工表(empno员工号/ename员工姓名/job工作/mgr上级编号/hiredate受雇日期/sal薪金/comm佣金/deptno部门编号)
dept部门表(deptno部门编号/dname部门名称/loc地点)
工资 = 薪金 + 佣金
也可以通过 ......
SELECT * from xcmis.temp_odr_prom@linkxceis where trim(ODR_NO) like 'CA10010082'
SELECT * from xcmis.temp_odr_prom@linkxceis where ODR_NO like 'CA10010082%'
SELECT * from xcmis.temp_odr_prom@linkxceis where ODR_NO = 'CA10010082'
OK
SELECT * from xcmis.temp_odr_prom@linkxceis where ODR_NO like 'C ......
常用SQL查询:
1、查看表空间的名称及大小
select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size
from dba_tablespaces t, dba_data_files d
where t.tablespace_name = d.tablespace_name
group by t.tablespace_name;
2、查看表空间物理文件的名称及大小
select t ......