select의 option을 숨겼다 보였다 하는 경우 숨길 때 selected option을 unselect 할 때 $().val("") 와 같은 걸 해도 다시 보이게 되면 브라우저에서 기존 상태를 읽어서 selected option이 그대로 나오는 경우가 있다.
이 경우는 아래와 같이 확실하게 selectd 를 false로 처리해야 함
$select.find("option:selected").prop("selected", false).trigger("change");
접속 정보 확인
exec sp_who2;
host 에 ip가 안나오는 경우 sp_who2에서 나온 SPID를 사용해서 아래와 같이 ip를 확인 할 수 있음.
SELECT client_net_address
FROM sys.dm_exec_connections
WHERE session_ID = @@SPID
2024. 5. 14. 07:35
[Lucee CFHTTP] XML Request를 사용 할 때 주의해야 할 점.
2024. 5. 14. 07:35 in 팁&테크/Coldfusion & Lucee

cfhttp(method='POST', charset='utf-8', url=apiUrl, result="response", clientcertpassword=qrCreds.ClientCertPassword, clientcert=qrCreds.ClientCertificate) {
//cfhttpparam(type='header', name='Content-Type', value='text/xml'); //If you use type='xml' in lucee, you should not set the 'Content-Type' header.
cfhttpparam(type='header', name='SOAPAction', value='http://services.escreen.com/RequestTicket');
cfhttpparam(type='xml', value=trim(requestData));
}
위와 같이 Lucee 에서는 type="xml" 로 내용을 전달 하는 경우 "Content-Type: text/xml" 을 전달 하지 말아야 한다.
이유는 type="xml" 일 때 자동으로 "Content-Type: text/xml" 를 추가 하여 수신 측에서 Invalid header 로 처리될 수 있다.
꼭 "Content-Type: text/xml" 을 수동으로 전달 하고자 한다면 type="xml" 을 type="body"로 해야 한다.
쿼리 옵티마이저가 알아서 하겠지만 강제로 병렬 처리 하게 하는 방법은 아래 와 같다.
2016 이상
1
2
3
4
5
6
|
SELECT *
FROM [Sales].[Orders] t
WHERE t.CustomerID >100
ORDER BY OrderID
OPTION(USE HINT('ENABLE_PARALLEL_PLAN_PREFERENCE'))
GO
|
이전 버전
1
2
3
4
5
6
|
SELECT *
FROM [Sales].[Orders] t
WHERE t.CustomerID >100
ORDER BY OrderID
OPTION(QUERYTRACEON 8649)
GO
|