본문 바로가기

xp_cmdshell 사용 권한 부여 방법 출처 : http://www.sqlworld.pe.kr/mboard/mboard/mboard.asp?board_id=tip&group_name=board&idx_num=29 안녕하세요? 디비누리 SQLWorld의 이장래입니다.xp_cmdshell 은 기본적으로 사용할 수 없게 설정되어 있습니다. 그리고 xp_cmdshell 를 사용가능하도록 설정한다 하더라도 일반 계정은 사용할 수 없습니다. 물론 일반 계정에게 sysadmin 권한을 주면 xp_cmdshell 를 사용할 수 있지만 이렇게 하면 보안에 큰 취약점이 생기게 됩니다. 다음의 과정과 같이 하면 이러한 문제 없이도 일반 계정에게도 xp_cmdshell 사용 권한을 부여할 수 있습니다. SQL Server에서 설정하기 전에 윈도우즈에서 설정할 내용.. 더보기
How do I install and use cURL on a Windows machine? (Windows cURL 설치) 출처 : http://guides.instructure.com/s/2204/m/4214/l/83393-how-do-i-install-and-use-curl-on-a-windows-machine Install cURL on WindowsThere are 4 steps to follow to get cURL installed on Windows. There are two (2) libraries to install and they must be installed before cURL will work with SSL. Also, they must be installed in this order to work. Do not skip step 4.Step 1 and Step 2 is to install SSL .. 더보기
procedure 에서 loop 사용 참고 : http://www.sqlusa.com/bestpractices/whilelooptablevariable/ create procedure [PROC_SMS_SEND]AS beginset nocount on DECLARE @cnt INT, @seq INT, @imax INT, @i INTDECLARE @sender VARCHAR(15)DECLARE @receiver VARCHAR(15)DECLARE @message VARCHAR(80)DECLARE @sms_queue TABLE(rowidint identity (1, 1),seqint,phonevarchar(15),[message]varchar(80)) insert @sms_queueselectseq, phone, [message] from [mp.. 더보기