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

In SQL Server 2005, we introduced a different method than in previous versions to rebuild system databases (affectionately known as "rebuild master"). You were required to use the setup.exe program with command line switches.

This is no different in SQL Server 2008 but the command line switches have changed some and the process behind the scenes to rebuild the system databases (master, model, and msdb) is also a bit different.

Currently the SQL Server 2008 Books Online only mention an option for setup called /REBUILDDATABSES (See this link) but this information is not correct so I'll outline how to do this here in this blog post. We will also get our documentation updated to reflect this information.

The syntax for using setup.exe to rebuild the system databases is as follows:

setup.exe

/QUIET

/ACTION=REBUILDDATABASE

/INSTANCENAME=instance_name

/SQLSYSADMINACCOUNTS= accounts

[/SAPWD=password]

[/SQLCOLLATION=collation_name]

Here are the details about how to use this syntax and how it works:

1. Find setup.exe either from your original media or the "local" setup.exe as found in the directory where you have installed SQL Server in the 100\Setup BootStrap\Release directory. So on my machine, I changed directory to C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Release.

2. Run setup.exe with the following syntax from a Windows command prompt:

If you have SQL configured for Windows Authentication Mode use this syntax:

setup /ACTION=REBUILDDATABASE /QUIET /INSTANCENAME=<instance name> /SQLSYSADMINACCOUNTS=<accounts>

where

<instance name> is either the name of your named instance or MSSQLSERVER for the default instance

<accounts> are Windows groups or individual accounts to provision as sysadmin

If you have SQL configured for Mixed Authentication Mode use the same syntax except you must also provide the /SAPWD parameter to specify the SA password. If you don't, you will get an error.

If you want to rebuild the system databases with a different collation than what you used to install SQL Server, you would need to supply the /SQLCOLLATION parameter. If you don't supply this parameter, then SQL Server will rebuild the system databases with the collation you selected when you installed SQL Server.

3. When setup has completed rebuilding the system databases, it will return to the command prompt with no messages (It always first prints out the version). If you have any syntax problems or issues with parameters you will see these errors in the command window. If you don't see any errors, then you will need to examine the "Summary" log file to verify it was completely successful.

클러스터를 구성한 MSSQL2008 서버에서 강제종료하고 발생한 서비스 시작 실패였습니다. 이벤트 로그에서는 master DB와 Log 가 손상되어 종료되었다는 구문이 나와서 master DB가 문제가 되어 복구 문제에서 검색해서 나온 결과입니다. 템플릿 폴더에서 복사했더니 역시 복구가 되지 않고 위 명령 옵션을 수행해야만 master 데이터베이스가 복구가 되었습니다. 서비스가 시작이 되어야만 백업된 DB를 복구를 하든 말든 할건데 계정이 많지 않다면 뭐 수동으로 일일이 넣어도 시간은 늦지 않을거라는 판단입니다. 그냥 클러스터 다시 설치할까 고민하다가 한번 검색해서 찾아보구 실행해서 복구해본 포스팅입니다. 서버가 무응답이 길어져서 그냥 iSCSI 스토리지 서버를 강제 종료한것이 화근이 되었던 것입니다. MySQL도 멀쩡하였는데 MSSQL만 이런현상이 있어서 난감했던 몇일이였습니다. 다행히 운영중이지 않아 별문제가 없었지만 실제로 이런일이 발생하면 발만 동동 구르기 때문에  신속히 MS에 지원받는게 빠를수도 있습니다( DB다운되면 어떤일이 벌어지는지 다 아시겠지만... 흠흠) 위에 내용보면 2005 나 2008이나 별반 다를게 없다고 나온거 보면 2005도 같은 명령을 수행하는가 봅니다. 누군가 이글을 읽어보고 영문이라서 무심코 그냥 대충 무시하고 할수 있는데 필자처럼 SA패스워드를 무시하고 진행을 하였더니 에러를 뿜어주는 삽질을 피하지 못할것입니다. 위설명처럼 반드시 sa 패스워드는 넣으라고 지시하고 있습니다.


2012/04/15 05:41 2012/04/15 05:41
술이 이 작성.
TAGS ,

Microsoft SQL Server Management StudioUnable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). (Microsoft.VisualStudio.OLE.Interop)


Run this:

regsvr32 c:\windows\system32\actxprxy.dll


MSSQL 2005 유지관리 계획 작성할려고 하면 위 에러를 뿜어줄때 레지스트리 등록하라고 검색되었습니다. 비쥬얼스튜디오로 링크시켜주는게 안맞아서 그런지 이게 처음엔 안생기다가 어느순간에 나타난거 보면 좀 희안하다 싶네요. 클러스터된 2005 DB 서버 테스트하다가 예상치 못한 오류도 경험하게 됩니다. 클러스터 서버에 서비스팩 올리는게 쉽지 않다는걸 새삼 느낍니다. 반면 2008 서버부터는 알아서 업데이트가 올라오고 알아서 되든데...
이놈의 2003 서버위에 MSSQL2005는 별 에러가 필자를 힘들게 합니다.

2012/03/22 21:23 2012/03/22 21:23
술이 이 작성.

"사용자
  

01 The Curse 
02 I Suppose
03 Olivia   
04 Gasoline
05 My Sound
06 When I'm Awake
07 85 / 40   
08 Hourglass
09 Inside
10 Go 

   
   
   
       
      
겨울보다 매혹적인 노르웨이 숲으로의 음악 여행.

Bellman [The Curse]

2011년 1월 내한을 앞둔 노르웨이의 감성적인 록밴드 벨맨(Bellman)의 2번째 앨범 [The Curse]는 라디오 헤드의 발라드곡이 떠오르는 드라마틱한 락 앨범이다.

외환은행 광고(하지원 편)에 삽입되어 국내에 알려진 그들의 데뷰앨범 [Mainly Mute]의 긴장감 넘치는 분위기를 고스란히 가져온 첫 번째 싱글 ‘The Curse’를 지나, 많은 사람들의 사랑을 고루 받을 수 있는 클래식 팝 ‘I Suppose’와 업비트의 ‘Olivia’를 듣고 있자면 전작보다 더 행복한 분위기의 팝과 바로크음악을 섭렵하는 정교함을 엿볼 수 있다.

긴 터널같은 겨울을 지나 봄의 환한 햇살을 머금은 듯한 앨범 [The Curse]는 오랜 투어기간 동안 축적된 음악적 활기가 가득한 분위기 속에서 완성되었다고 한다. 오케스트레이션과 아르너(리드 보컬)의 절제된 듯 깊은 위로를 주는 보컬은 북구의 짙푸른 밤하늘과 눈쌓인 침엽수를 지나는 풍경처럼 아름답고 신비로운 사운드로 안내할 것이다.

EBS 스페이스 공감에서 우연히 보고 듣게되어 앨범을 포스팅합니다. 막바지에 방송봐서 한곡만 들었습니다. 너무 궁금해서 앨범사냥하다 2009년 앨범은 구하기 힘들어서 최근앨범을 찾았습니다. 국내에 왔었던것도 모르고 이렇게 모르고 있었던 음악이였습니다. 앨범 완성도가 꽤 높습니다. 퇴근하고 집에오면 이 앨범을 들으면서 휴식을 취하기도 하는데요 EBS 방송에서는 괜찮은 아티스트를 자주 소개해주곤 하는데 필자는 관심이 부족해서인지 언제 하는지도 모르겠더랍니다. 너무 빌보드챠트에만 관심이 있었던거지도 모르죠. 좋은 음악들이 많은데 너무 편향되어 있다는걸 이제야 깨달은거 같습니다. 가끔 나는 음악좀 듣거든~~! 하며 생색냈는데 이앨범을 이제야 알정도면 아닌거 같네요 ㅎㅎ.

2012/03/15 23:54 2012/03/15 23:54
술이 이 작성.

« Prev : 1 : 2 : 3 : 4 : 5 : ... 167 : Next »