SQL SERVER 2008


  1. 복구모델 확인

select DATABASEPROPERTYEX(‘디비명’, ‘Recovery’)

  1. 축소쿼리 실행

복구모델이 FULL 로 확인될 경우

alter database 디비명 set recovery simple

dbcc shrinkfile (로그파일의 논리적 이름, 10) : 로그파일을 10M로 줄임


  1. 복구모델 복귀

alter database 디비명 set recovery full


블로그 이미지

엘로드넷

,

email 주소 유효성 체크



Function EmailCheck(stremail)
emailpattern = "^[\w-\.]{1,}\@([\da-zA-Z-]{1,}\.){1,}[\da-zA-Z-]
{2,3}$"
if stremail = "" then 
RegExpEmail = false
else
dim regEx, Matches
Set regEx = New RegExp
regEx.Pattern = emailpattern
regEx.IgnoreCase = True
regEx.Global = True
Set Matches = regEx.Execute(stremail)

if 0 < Matches.count then
EmailCheck = true
Else
EmailCheck = false
end if
end if
End Function


'ASP' 카테고리의 다른 글

ASP 확장자 구하기  (0) 2015.04.18
블로그 이미지

엘로드넷

,
email주소 유효성 체크 :

$email = $_POST['email'];

if (trim($email)=='') { echo "이메일을 입력해 주십시오."; } else if (!preg_match("/([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/", $email)) { echo "올바른 이메일 형식이 아닙니다."; } else { echo "올바른 이메일입니다."; }



블로그 이미지

엘로드넷

,