테이블들의 Row Count 가져오기!

Posted by Alvin You
2014. 3. 22. 22:20 SQL Server

SELECT [TableName] = so.name,
[RowCount] = MAX(si.rows)
FROM sysobjects so, sysindexes si
WHERE so.xtype = 'U' AND si.id = OBJECT_ID(so.name)
GROUP BY so.name ORDER BY 2 DESC

Object(SP, UDF 등) 검색

Posted by Alvin You
2014. 3. 22. 22:20 SQL Server

SELECT *
FROM sys.procedures
WHERE OBJECT_DEFINITION(object_id) LIKE '%foobar%'

SELECT OBJECT_NAME(object_id)
FROM sys.sql_modules
WHERE Definition LIKE '%foobar%'
AND OBJECTPROPERTY(object_id, 'IsProcedure') = 1

SELECT ROUTINE_NAME
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE '%foobar%'
AND ROUTINE_TYPE = 'PROCEDURE'

MS SQL Server 2008 R2에서 Collation 변경하기

Posted by Alvin You
2014. 3. 22. 22:19 SQL Server

setup.exe
/QUIET
/ACTION=REBUILDDATABASE
/INSTANCENAME=instance_name
/SQLSYSADMINACCOUNTS= accounts
[/SAPWD=password]
[/SQLCOLLATION=collation_name]

setup /ACTION=REBUILDDATABASE /QUIET /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS=Administrator /SAPWD=P@ssword /SQLCOLLATION=Korean_Wansung_CS_AS

http://blogs.msdn.com/b/psssql/archive/2008/08/29/how-to-rebuild-system-databases-in-sql-server-2008.aspx

주의)master 데이터베이스 변경작업이기 때문에 Backup은 필수... 테스트 해보니 모든 데이터베이스가 훌라당 날아감!

ASP.NET SQL Server 설치(aspnet_regsql.exe)

Posted by Alvin You
2014. 3. 21. 15:18 ASP.NET

ASP.NET의 Membership과 Authorization을 위해서는 ASP.NET에서 사용되는 Database를 생성해야 합니다.

아래 절차는 ASP.NET Database 생성을 하기 위한 순서를 정리해 봤습니다다.

 

C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql.exe 실행을 통해서 ASP.NET SQL Server 설치 마법사를 실행할 수 있습니다.

 

 

 

 

 

  • 생성된 ASPNETDB 데이터 베이스 확인

'ASP.NET' 카테고리의 다른 글

IDENTITY_INSERT가 OFF 오류 처리 방법  (0) 2014.03.25
MvcMusicStore 프로젝트 SQL Server 적용  (0) 2014.03.20
C#에서 get, set 자동 완성  (0) 2014.03.20

생각대로 살지 않으면 사는 대로 생각하게 된다

Posted by Alvin You
2014. 3. 21. 11:49 밑줄 한줄

요즘 자꾸만 내 뇌리속에 빙빙 도는 문구

"생각대로 살지 않으면 사는 대로 생각하게 된다"

 

개인이든 기업이든 마찬가지일 것 같다는 생각이 든다. 내일, 한달, 일년 이후의 계획과 목표가 없다면 사는대로 생각하게 되는 상황이 되고, 점차 매너리즘과 무기력감에 빠지는 개인과 기업의 모습을 보게 되지 않을까란 생각을 해 본다.

 

2014년 한 아이의 아빠가 되었고, 한 가정의 가장으로써 어깨가 더 무거워진 이 시점에 내 생각은 어디에 있는지 내 자신에게 질문을 던저 보는 금요일이다.

 

2014/3/21 - ㅂ.ㅅ

'밑줄 한줄' 카테고리의 다른 글

다시 일상으로 복귀  (0) 2014.06.05
프로페셔널  (0) 2013.10.12
일단 부딪쳐 본다  (0) 2013.10.12

[Powershell]Get Exchange Mailbox Statistics

Posted by Alvin You
2014. 3. 21. 11:43 Exchange Server
Get-MailboxStatistics where {$_.disconnectdate -eq $null} format-table -Property displayname, lastloggedonuseraccount, legacydn -AutoSize -Wrap Out-File D:\mbxstatistics.txt -Width 2147483647

 

[Powershell]How can I get Mailbox Guid from Exchange2007?

Posted by Alvin You
2014. 3. 21. 11:42 Exchange Server

Just using this powershell and figure it out.

Get-MailboxStatistics WHERE {$_.lastlogontime -eq $null } fl -property displayname, mailboxguid, database

McKnight Principles

Posted by Alvin You
2014. 3. 21. 11:38 분류없음
McKnight Principles

William L. McKnight, who served as 3M chairman of the board from 1949 to 1966, encouraged 3M management to "delegate responsibility and encourage men and women to exercise their initiative."

His management theories are the guiding principles for 3M. Our heritage dates back more than 100 years, and McKnight's principles continue to accompany us in the 21st century.

William L. McKnight Management Principles Created 3M's Corporate Culture

William L. McKnight joined Minnesota Mining and Manufacturing Co. in 1907 as an assistant bookkeeper. He quickly rose through the company, becoming president in 1929 and chairman of the board in 1949.

Many believe McKnight's greatest contribution was as a business philosopher, since he created a corporate culture that encourages employee initiative and innovation.

His basic rule of management was laid out in 1948:

"As our business grows, it becomes increasingly necessary to delegate responsibility and to encourage men and women to exercise their initiative. This requires considerable tolerance. Those men and women, to whom we delegate authority and responsibility, if they are good people, are going to want to do their jobs in their own way.

"Mistakes will be made. But if a person is essentially right, the mistakes he or she makes are not as serious in the long run as the mistakes management will make if it undertakes to tell those in authority exactly how they must do their jobs.

"Management that is destructively critical when mistakes are made kills initiative. And it's essential that we have many people with initiative if we are to continue to grow."

http://solutions.3m.com/wps/portal/3M/en_WW/History/3M/Company/McKnight-principles/

DFS에서 UCF 사용하기

Posted by Alvin You
2014. 3. 21. 11:37 DOCUMENTUM

1. JDK 1.6 or JRE 1.6 이상을 로컬 컴퓨터에 설치함
2. -Webapp-/da or webtop/WDK/System/ucfinit.jar 파일을 로컬에 복사
3. java -cp "c:\ucfinit.jar" com.documentum.ucf.client.install.TestInstall "http://localhost" "/wdk/contentXfer/ucf.installer.config.xml"
을 이용해 ucf client jar파일을 로컬에 설치 후 재부팅 시킨 후에 사용하면 됨!!

휴우~ 모든게 맨땅에 헤딩이구낭~!!!

'DOCUMENTUM' 카테고리의 다른 글

IDQL을 이용한 DQL 실행하기  (0) 2014.03.24
Documentum 7.0 64bit 설치  (0) 2014.03.23
r_object_id의 구성  (0) 2014.03.21
Documentum Client Capability  (0) 2014.03.21
LDAPSync Mehtod 실행  (0) 2014.03.21

r_object_id의 구성

Posted by Alvin You
2014. 3. 21. 11:33 DOCUMENTUM
Documentum의 dm_sysobject의 하위 Object들의 Key값은 r_object_id로 구성된다.
r_object_id의 구성은 16자리인데
그 중 2자리는 Object Type, 6자리는 Repository ID, 8자리는 Unique ID값들로 구성된다는것을 알고 있다면 Documentum을 이해하는데 도움이 된다. 약간 MOSS와 비슷한 느낌도 있지만 어쨋든 독특한 시스템인 것 같은 생각이 든다.

ex)0900271280000beb
Type Repository ID Unique ID
09 002712 80000beb Hex값

Object Type들의 종류로는
00 dmi_audittrail_attrs
03 dm_type
05 dmr_containment
06 dmr_content
08 dm_application
08 dm_job
08 dm_procedure
08 dm_query
08 dm_script
08 dm_smart_list
09 dm_document
0b dm_folder
0c dm_cabinet
0d dm_assembly
10 dm_method
11 dm_user
12 dm_group
19 dm_registered
1f dmi_index
26 dmi_registry
27 dm_format
28 dm_filestore
28 dm_store
2c dm_distributedstore
2e dmi_type_info
2f dm_dump_record
30 dmi_dump_object_record
31 dm_load_record
32 dmi_load_object_record
37 dm_relation
3a dm_location
3b dm_fulltext_index
3c dm_docbase_config
3d dm_server_config
40 dm_blobstore
41 dm_note
45 dm_acl
46 dm_policy
49 dmi_package
4a dmi_workitem
4c dm_activity
4d dm_workflow
53 dm_literal_expr
5e dm_federation
5f dm_audittrail_acl
5f dm_audittrail_group
5f dm_audittrail
66 dm_alias_set
6a dmi_dd_attr_info
0b dm_taxonomy
0b dm_xml_application
6b dm_display_config
20 dmi_sequence

 

'DOCUMENTUM' 카테고리의 다른 글

Documentum 7.0 64bit 설치  (0) 2014.03.23
DFS에서 UCF 사용하기  (0) 2014.03.21
Documentum Client Capability  (0) 2014.03.21
LDAPSync Mehtod 실행  (0) 2014.03.21
Create Documentum ACL Script  (0) 2014.03.21