21,20 / 고유설정 포트에도 방화벽으로 인해 외부접근 차단.
방화벽 – 예외 – 프로그램에 windows\system32\inersrv\inetinfo.exe 추가.
21,20 / 고유설정 포트에도 방화벽으로 인해 외부접근 차단.
방화벽 – 예외 – 프로그램에 windows\system32\inersrv\inetinfo.exe 추가.
EXEC msdb.dbo.sp_send_dbmail
@profile_name = 'ygmail',
@recipients = 'yykwon@cyberwin.co.kr',
@subject = 'Automated Success Message',
@body = '메일을 받아라',
@body_format = 'text',
@file_attachments = 'c:\test.txt'
용량 수정하기
msdb.dbo.sysmail_configure_sp 'MaxFileSize' , 10097152
-- OLE 기능 사용 수정
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO
SQL Datetime범위 (0) | 2014.03.27 |
---|---|
DB 복원,로그 정리관련 명령어 (0) | 2014.03.01 |
서버에있는 image형식 파일 다운로드 (0) | 2012.06.21 |
SQL Backup Schedule root : NAS (0) | 2012.05.22 |
해당 SPID가 수행하고있는 쿼리보기 (0) | 2012.05.09 |
DECLARE
@IMG_PATH VARCHAR(MAX),
@TIMESTAMP VARCHAR(MAX),
@ObjectToken INT,
@FILENAME varbinary(MAX),---new variable here
@hr int
SELECT @IMG_PATH = filnm
,@FILENAME = filedata ---column selected here
FROM syver01t a
where a.filnm = 'apf01.pbd'
SET @TIMESTAMP = 'd:\sign\'+@IMG_PATH
select @IMG_PATH,@TIMESTAMP,@FILENAME
EXEC @hr = sp_OACreate 'ADODB.Stream', @ObjectToken OUTPUT
select @hr
EXEC @hr = sp_OASetProperty @ObjectToken, 'Type', 1
select @hr
EXEC @hr = sp_OAMethod @ObjectToken, 'Open'
select @hr
EXEC @hr = sp_OAMethod @ObjectToken, 'Write', NULL, @FILENAME --new variable here
select @hr
EXEC @hr =sp_OAMethod @ObjectToken, 'SaveToFile', NULL, @TIMESTAMP, 2
select @hr
EXEC @hr =sp_OAMethod @ObjectToken, 'Close'
select @hr
EXEC @hr =sp_OADestroy @ObjectToken
select @hr
DB 복원,로그 정리관련 명령어 (0) | 2014.03.01 |
---|---|
Send_Mail (0) | 2012.06.21 |
SQL Backup Schedule root : NAS (0) | 2012.05.22 |
해당 SPID가 수행하고있는 쿼리보기 (0) | 2012.05.09 |
암호 만료정책 설정 (0) | 2012.03.28 |