Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
SQL ³¯Â¥º° ¹é¾÷È­ÀÏ »ý¼ºÇϱâ...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
õ  
View profile   Translate to Translated (View Original)
 More options Aug 25 2004, 7:31 am
Newsgroups: microsoft.public.kr.asp.qna
From: "천상태자" <etern...@dreamwiz.com>
Date: Wed, 25 Aug 2004 20:31:44 +0900
Local: Wed, Aug 25 2004 7:31 am
Subject: [TIP] SQL 날짜별 백업화일 생성하기...
안녕하세요...

제가 잠시 휴가였답니다. ^o^ 뭐 집에서 뒹굴거리기만 했지만요. ㅋㅋ
휴가 시작하자마지 끝이네요... 낼부터 출근할 생가하니 벌써 머리가
지끈거립니다. @.@

모임때 Hamlet님께서 물어보셨던 내용인데요.
생각해보니 다른분들도 유용하게 사용하실수 있을 내용같아서 함 올려봅니다.

SQL 서버로 백업시 백업화일을 날짜별로 생성하는 방법입니다.

declare @str nvarchar(100)
set @str = N'c:\backup\mydb' + convert(nvarchar(20), getDate(), 112) +
N'.bak'

BACKUP DATABASE [mydb] TO DISK = @str
WITH NOINIT , NOUNLOAD , NAME = N'mydb backup', NOSKIP , STATS = 10,
NOFORMAT

위의 스크립을 job으로 스케쥴링 거시면 됩니다.
해당 일정이 되면 mydb20040825.bak, mydb20040826.bak 이런식의 백업화일이
생성됩니다.

기타 백업 옵션에 관핸 부분은 BOL을 참고하시면 될듯합니다.

--
 오늘도 크게 한번 웃어보세요.~~  ^_____________^
*******************************************************
 천상태자 ^O^, Microsoft MVP, ASP/ASP.Net, Korea
 E-Mail : etern...@dreamwiz.com
 MSN ID : etern...@hanmail.net
 Homepage : http://yujinworld.pe.kr
*******************************************************


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "SQL 날짜별 백업화일 생성하기..." by hamlet
hamlet  
View profile   Translate to Translated (View Original)
 More options Aug 25 2004, 9:57 am
Newsgroups: microsoft.public.kr.asp.qna
From: "hamlet" <webmas...@hamletboard.com.kr>
Date: Wed, 25 Aug 2004 22:57:52 +0900
Local: Wed, Aug 25 2004 9:57 am
Subject: Re: [TIP] SQL 날짜별 백업화일 생성하기...
^^"
감사합니다~~
잘~ 활용하겠습니다

"천상태자" <etern...@dreamwiz.com> wrote in message

news:#cpMZcpiEHA.3664@TK2MSFTNGP11.phx.gbl...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »