'SQL2012'에 해당되는 글 18건

  1. sql2012 버젼 Dashboard가 나왔네요.ㅋ
  2. SQL2012 CU1 나왔네요.
  3. 가상계정 로컬 정책 추가 하기
  4. SQL2012 lock page in memory 설정 방법 변경
  5. SQL2012 시작 매개변수 지정
  6. 결과창 보기 단축키 다시 사용하기~~ CTRL+R 2
  7. SQL SERVER 2012 EDITIONS 2
  8. Free ebook: Introducing Microsoft SQL Server 2012

안녕하세요. 주디아줌마입니다.

SQL2012 버젼용 성능 분석을 할 수 있는  Dashboard가 3/6/2012에 나왔습니다.  아래의 사이트에서 다운로드 받을 수가 있습니다.  

다운로드>

http://www.microsoft.com/en-us/download/details.aspx?id=29063

참고>

http://troubleshootingsql.com/2012/04/18/awesomesauce-sql-server-2012-performance-dashboard/


1. 설치 방법

가. 해당 사이트에서 Dashbord 설치 버젼을 다운로드 받습니다.

나. SQLServer2012_PerformanceDashboard.exe 설치를 합니다.

 다. 설치한 드라이브 %ProgramFiles(x86)%\Microsoft SQL Server\110\Tools\Performance Dashboard 경로를 찾아갑니다. 

라. SQL2012에 setup.sql 파일을 실행합니다. 

2. 사용 방법

가. SSMS의 Object Exploer를 확장한다. 

나. DB 인스턴스를 선택 후 오른쪽 마우스 클릭

다. 보고서 > 사용자 지정 보고서를 선택한다. performance_dashboard_main.rdl을 선택합니다. 




좋은 기능들이 많이 업그레이드 되었네요.

SQL2012 CU1 나왔네요.


SQL2012 관련 CU1이 2012년 4월 12일 목요일에 올라왔습니다. 2679368 Cumulative update package 1 (CU1) for SQL Server 2012 자료는 여기서 확인이 가능합니다.


SQL Build관련 참고사이트로 추천합니다. 요약이 잘 되어 있네요^^

http://sqlserverbuilds.blogspot.co.nz/



Windows 2008, windows 7이후 버젼부터 가상계정이 생겼습니다. 가상계정에 로컬 정책을 위해서는 아래와 같이 사용자 또는 그룹 추가 해야합니다. 


가상 계정 정보 조회 

select name from sys.syslogins where name like 'nt service%'



가상계정으로 계정 및 그룹에 보이지는 않습니다.

1) nt service\mssql$sql2012을 입력하고 나서 이름 확인을 누른다.

2) 이름 확인후 보이는 화면. 

3) 등록 완료


SQL2012 이전버젼에서는 Lock page memory를 설정하기 몇가지 기능중 T845 플래그를 설정해야 한다. 하지만 SQL2012 버젼부터는 T845  플래그 설정 안 해줘도 되네요.


http://support.microsoft.com/kb/2659143/
http://blogs.msdn.com/b/sqlosteam/archive/2012/03/22/lock-pages-in-memory-not-deprecated-in-denali.aspx


You do not have to use Trace Flag 845 in SQL Server 2012. You can remove this trace flag from the startup parameters after you upgrade your instance to SQL 2012. 


자.. SQL2012 Lock Page In Memory 기능을 설정해볼까여~~


1. SQL 시작계정에 윈도우 사용자 권한 할당

커맨드명령어 : gpedit.msc

컴퓨터 구성>Windows 설정>보안 설정>로컬 정책> 사용자 권한 할당

SQL 시작계정에 "메모리에 페이지 잠금" 할당!! 여기서는 sqlservice 계정으로 설정.


2. 설정 확인하기

 sp_readerrorlog로 시작 메세지를 확인

"Using locked pages in the memory manager"  이렇게 메세지만 있다면 OK~~


Edition에 따라 설정방법 차이가 있네요~


Enterprise Edition,
Data Center Edition
Standard Edition,
Business Intelligence Edition
Other editions
SQL 2012 (32-bit and 64-bit)• Assign LPIM user right to SQL Startup account• Assign LPIM user right to SQL Startup accountNo support for "locked pages"
SQL Server 2005/2008/2008R2 (32-bit)• Assign LPIM user right to SQL Startup account
• Configure 'awe enabled' option to 1
• Assign LPIM user right to SQL Startup account
• Configure 'awe enabled' option to 1
No support for "locked pages"
SQL Server 2005/2008/2008R2 (64-bit)• Assign LPIM user right to SQL Startup account• Assign LPIM user right to SQL Startup account
• Apply SQL Hotfix KBA 970070
• Enable trace flag 845
No support for "locked pages

SQL2012에서 시작매개변수가 변경되었는데 어떻게 변경되었는지 확인해보자.

SQL Server Configuration Manager > SQL Server > 속성 > 시작매개변수 Tab

주요 플래그

. -T1118 : TempDB SGAM 경합 해결을 위해 Mixed Extent의 할당이 발생하지 않고 Uniform Extent로 할당하도록 하는 플래그

. -T845 : SQL Server 2005, 2008 64 std 에디션에서 lock pages in memory를 활성화하기 위한 플래그(기본 설정)

. -T1112;-T1204 : 교착 상태의 잠금의 유형과 리소스 정보 반환




SQL2012 SSMS로 작업을 하다보니 결과창 CTRL+R 단축 명령어가 안 먹힌다. 줴길~~  몇일동안 구글링하다가 드뎌 찾았다. 

원본글

http://sqlblog.com/blogs/aaron_bertrand/archive/2011/07/14/sql-server-v-next-denali-getting-ctrl-r-to-work-again.aspx

https://connect.microsoft.com/SQLServer/feedback/details/730641/ssms-2012-lacks-the-abilty-to-hide-the-results-pane

Let me take that back. On two different Win8 machines, with clean installs of RTM, and with both having the keyboard settings in Tools / Options / Environment / Keyboard set to (Default), I observe the following symptoms on the two machines:

Machine A
=========
- Ctrl+R does not work.
- The Window menu does not show a keyboard shortcut next to the Show Results Pane / Hide Results Pane option
- Applying the workaround (assigning Ctrl+R to Window.ShowResultsPane) adds the keyboard shortcut text to the Window menu, and choosing the menu option works, but Ctrl+R still does nothing.

Machine B
=========
- Ctrl+R works out of the box.

So clearly there is something different going on with these two boxes. Would love to offer up my VMs for investigation.

내 PC select @@version 결과

Microsoft SQL Server 2012 - 11.0.2100.60 (X64) 

Feb 10 2012 19:39:15 

Copyright (c) Microsoft Corporation

Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

저만, 안되는 줄 알았는데 여러 사람이 있네요^^.


TODO 

현재는 결과 창 표시가 Ctrl+Shift+Alt+R으로 사용해야 하는데 이것을 예전과 같은 CTRL+R로 바꿔보자.


PROCESS

1. SSMS를 실행한다.

2. 도구>옵션>키보드

너무 많은 명령 표시들이 보인다.  "다음 문자열을 포함하는 명령 표시"에서 결과를 입력하고 창:결과창 표시 선택한다.

3. 새 바로가기 사용하기 위치에서 "SQL 쿼리 편집기" 선택하고, 바로가기 키 누르기에서 CTRL+R를 누른다. 그러면 선택한 명령의 바로가기에 등록이 되어 이전과 같은 명령어로 사용할 수 있다. 




SQL SERVER 2012 EDITIONS


SQL2012 라인센스 정책. 

가.  a core licensing model for the Enterprise and Standard edition.
나.  Business Intelligence  추가. 


Feature Name

Enterprise

Business Intelligence

Standard

Web

Express with Advanced Services

Express with Tools

Express

Maximum Compute Capacity Used by a Single Instance (SQL Server Database Engine)1

Operating System maximum

Limited to lesser of 4 Sockets or 16 cores

Limited to lesser of 4 Sockets or 16 cores

Limited to lesser of 4 Sockets or 16 cores

Limited to lesser of 1 Socket or 4 cores

Limited to lesser of 1 Socket or 4 cores

Limited to lesser of 1 Socket or 4 cores

Maximum Compute Capacity Used by a Single Instance (Analysis Services, Reporting Services) 1

Operating system maximum

Operating system maximum

Limited to lesser of 4 Sockets or 16 cores

Limited to lesser of 4 Sockets or 16 cores

Limited to lesser of 1 Socket or 4 cores

Limited to lesser of 1 Socket or 4 cores

Limited to lesser of 1 Socket or 4 cores

Maximum memory utilized (SQL Server Database Engine)

Operating system maximum

64 GB

64 GB

64 GB

1 GB

1 GB

1 GB

Maximum memory utilized (Analysis Services)

Operating system maximum

Operating system maximum

64 GB

N/A

N/A

N/A

N/A

Maximum memory utilized (Reporting Services)

Operating system maximum

Operating system maximum

64 GB

64 GB

4 GB

N/A

N/A

Maximum relational Database size

524 PB

524 PB

524 PB

524 PB

10 GB

10 GB

10 GB


http://www.microsoft.com/sqlserver/en/us/sql-2012-editions.aspx





SQL2012 소개 버젼 ebook이 무료 배포되었습니다. 

다운로드

PART I   DATABASE ADMINISTRATION   (Ross’s part)

1. Denali Editions and Enhancements

2. High Availability and Disaster Recovery Enhancements

3. Scalability and Performance

4. Security Enhancements

5. Beyond Relational

PART II   BUSINESS INTELLIGENCE DEVELOPMENT   (Stacia’s part)

6. Integration Services

7. Data Quality Services

8. Master Data Services

9. Analysis Services and PowerPivot