보관물

Archive for 4월, 2009

Previous releases of Microsoft Visual Studio 2008

Microsoft SQL 2008을 설치할 때 다음과 같이 Visual Studio 2008 SP1 을 요구하는 메시지가 표시됩니다.

규칙 “Microsoft Visual Studio 2008의 이전 릴리스 확인”
이 컴퓨터에 Microsoft Visual Studio 2008의 이전 릴리스가 설치되어 있습니다. SQL Server 2008을 설치하기 전에 Microsoft Visual Studio 2008을 SP1으로 업그레이드하십시오.

Rule “Previous releases of Microsoft Visual Studio 2008″ failed.
A previous release of Microsoft Visual Studio 2008 is installed on this computer. Upgrade Microsoft Visual Studio 2008 to the SP1 before installing SQL Server 2008.

Visual Studio 2008 SP1 이 설치되어 있어야 하나, 다음과 같은 방법으로 설치가 가능합니다.

Setup /ACTION=install /SkipRules=VSShellInstalledRule RebootRequiredCheck

이 방법은 문서화되어 있지는 않지만, VSShellInstalledRule 을 체크하는 부분을 Skip 함으로써 설치가 가능하게 합니다

카테고리:SQL SERVER

IDE 상태에서 실행중인지 확인

첫번째 방법)

Option Explicit

Private Sub Form_Load()
   Debug.Print RunningIDE
End Sub

Private Function RunningIDE() As Boolean
    Debug.Assert Not TestIDE(RunningIDE)
End Function

Private Function TestIDE(Test As Boolean) As Boolean
    Test = True
End Function

두번째 방법)

Public Function RunningCompiledCode() As Boolean
   On Error Resume Next
   Debug.Print 1 / 0
   RunningCompiledCode = (Err.Number = 0)
   Err.Clear
End Function

카테고리:Visual Basic 태그: