checkpoint
카테고리 없음 / 2011. 6. 2. 22:51
* i/o throttle 제어
- 3MB 로 제한하고 싶다면 -k3 이라고 기술한다.
http://support.microsoft.com/kb/929240/en-us
* Traceflag 3505 를 이용한 수동 검사점 제어
http://support.microsoft.com/kb/815436
이외 Traceflag 가 몇개 더 있지만 별로~
* sp_configure
- max async IO 조정
- recovery interval 조정
단, 저 옵션들은 checkpoint 를 이해하고 쓰셔야 합니다. 아니면 sql server 내렸다 올리면 복구한다고 한세월 보냅니다. 주의 하세요~
use db1
go
if object_id('tblx') is not null
drop table tblx
go
create table tblx
(idx int
,a char(6000)
)
go
insert into tblx values (1,1)
go 10000
checkpoint
위 카운터를 이용해 더 상세히 모니터링 가능.
indirect checkpoint
https://www.mssqltips.com/sqlservertip/2652/indirect-checkpoints-in-sql-server-2012/
net start mssql$sql2008r2 /m"SQLCMD"
sqlcmd -S.sql2008r2 -d master
alter login sa enable
go
alter login sa with password ='1234' UNLOCK
go
exit
The Authentication mode for MS-SQL Server can be changed after installation without installing the SQL Management Studio.
- Open the Window Registry Editor (Start --> Run --> regedit.exe).
- Go to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\<INSTANCE NAME>\MSSQLServer where <INSTANCE NAME? is the name of the MS-SQL instance.
- Locate the field "LoginMode". Change it's value to "2" to put MS-SQL into Mixed Mode Authentication.
- Restart the MS-SQL service.