<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>코딩공방</title>
    <link>https://iron4g.tistory.com/</link>
    <description>개인 업무와 관련된 내용을 정리하는 블로그입니다.</description>
    <language>ko</language>
    <pubDate>Fri, 8 May 2026 13:06:12 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>SEA&amp;amp;SUN</managingEditor>
    <image>
      <title>코딩공방</title>
      <url>https://tistory1.daumcdn.net/tistory/2884187/attach/c18f4ff9aed341f6ad5fb6080b3c2a6f</url>
      <link>https://iron4g.tistory.com</link>
    </image>
    <item>
      <title>jboss shutdown 에러</title>
      <link>https://iron4g.tistory.com/12</link>
      <description>&lt;h3 data-ke-size=&quot;size23&quot;&gt;에러내용&lt;/h3&gt;
&lt;pre id=&quot;code_1591840358995&quot; class=&quot;html xml&quot; data-ke-language=&quot;html&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;Exception in thread &quot;main&quot; java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused (Connection refused)]
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:356)
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
        at org.jboss.Shutdown.main(Shutdown.java:235)
Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused (Connection refused)]
        at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
        at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
        at javax.naming.InitialContext.lookup(InitialContext.java:409)
        at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1914)
        at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1883)
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:290)
        ... 2 more
Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
        java.net.ConnectException: Connection refused (Connection refused)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:340)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
        at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
        ... 7 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
        at java.net.Socket.connect(Socket.java:543)
        at java.net.Socket.connect(Socket.java:492)
        at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:392)
        at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:206)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:146)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
        ... 12 more&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;에러원인&lt;/h3&gt;
&lt;p&gt;jboss 서비스 포트 변경 (8109 &amp;gt; 8009)&lt;/p&gt;
&lt;pre id=&quot;code_1591840534941&quot; class=&quot;html xml&quot; data-ke-language=&quot;html&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;변경전 : SERVICE_BINDING_SET=ports-01
변경후 : SERVICE_BINDING_SET=ports-default&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3 data-ke-size=&quot;size23&quot;&gt;해결방법&lt;/h3&gt;
&lt;p&gt;jboss shutdown 옵션의 jmx 포트 변경 (1190 &amp;gt; 1090)&lt;/p&gt;
&lt;pre id=&quot;code_1591840664519&quot; class=&quot;html xml&quot; data-ke-language=&quot;html&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;변경전 : ${JBOSS_HOME}/bin/shutdown.sh -S -s service:jmx:rmi:///jndi/rmi://localhost:1190/jmxrmi
변경후 : ${JBOSS_HOME}/bin/shutdown.sh -S -s service:jmx:rmi:///jndi/rmi://localhost:1090/jmxrmi&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>기타</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/12</guid>
      <comments>https://iron4g.tistory.com/12#entry12comment</comments>
      <pubDate>Thu, 11 Jun 2020 11:01:14 +0900</pubDate>
    </item>
    <item>
      <title>CentOS에 OpenJDK 설치</title>
      <link>https://iron4g.tistory.com/10</link>
      <description>&lt;p&gt;CentOS 에서 OpenJDK 설치하기&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;설치명령어 :&amp;nbsp;&lt;span style=&quot;font-family: monospace; font-size: 13.3333px; white-space: nowrap;&quot;&gt;yum install java-1.8.0-openjdk&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;root 권한이 아닌 경우 :&amp;nbsp;&lt;span style=&quot;font-family: monospace; font-size: 13.3333px; white-space: nowrap;&quot;&gt;su -c &quot;yum install java-1.8.0-openjdk&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: monospace; font-size: 13.3333px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;패키지 확인 후 설치확인 메시지에서 y 입력&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;자바 설치 확인&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;java -version&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;openjdk version &quot;1.8.0_191&quot;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;OpenJDK Runtime Enviroment (build 1.8.0_191-b12)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face=&quot;monospace&quot;&gt;&lt;span style=&quot;font-size: 13.3333px; white-space: nowrap;&quot;&gt;참고사이트 :&amp;nbsp;&lt;a href=&quot;https://openjdk.java.net/install/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://openjdk.java.net/install/&lt;/a&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;</description>
      <category>Linux</category>
      <category>centos</category>
      <category>Java</category>
      <category>openjdk</category>
      <category>오픈JDK</category>
      <category>자바</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/10</guid>
      <comments>https://iron4g.tistory.com/10#entry10comment</comments>
      <pubDate>Fri, 9 Nov 2018 14:06:09 +0900</pubDate>
    </item>
    <item>
      <title>날짜 관련 컬럼 DATE 와 VARCHAR 비교</title>
      <link>https://iron4g.tistory.com/9</link>
      <description>&lt;p&gt;현재 개발중인 시스템의 날짜 컬럼을 주로 VARCHAR(8) 로 사용 중&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://iron4g.tistory.com/8&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;SQL Server 날짜 및 시간 데이터타입 비교&lt;/a&gt; 포스트 작성 중 DATE 타입의 저장소 크기가 3바이트(고정)이라는 것을 보고 아래와 같이 테스트를 를 해 보았다.&lt;/p&gt;&lt;h4&gt;테이블 생성&lt;/h4&gt;
&lt;pre class=&quot;brush: sql&quot;&gt;CREATE TABLE [dbo].[TEST_DATE](
	[REG_DT] [date] NULL
)
GO

CREATE TABLE [dbo].[TEST_VARCHAR8](
	[REG_DT] [varchar](8) NULL
)
GO

CREATE TABLE [dbo].[TEST_VARCHAR10](
	[REG_DT] [varchar](10) NULL
)
GO&lt;/pre&gt;&lt;h4&gt;데이터입력&lt;/h4&gt;
&lt;pre class=&quot;brush: sql&quot;&gt;BEGIN

	SET NOCOUNT ON;

	DECLARE
		@FROM_DT DATE,
		@END_DT DATE

	SELECT
		@FROM_DT = CONVERT(DATE,'1900-01-01'),
		@END_DT  = CONVERT(DATE,'2079-06-05')	--DATEADD return smalldatetime

	WHILE @FROM_DT &amp;lt;= @END_DT
	BEGIN

		INSERT INTO TEST_DATE
		VALUES (@FROM_DT)

		INSERT INTO TEST_VARCHAR8
		VALUES (CONVERT(VARCHAR(8),@FROM_DT,112))

		INSERT INTO TEST_VARCHAR10
		VALUES (CONVERT(VARCHAR(10),@FROM_DT))

		SET @FROM_DT = DATEADD(dd,1,CONVERT(smalldatetime,@FROM_DT))

	END

END&lt;/pre&gt;&lt;h4&gt;테이블크기 조회&lt;/h4&gt;
&lt;pre class=&quot;brush: sql&quot;&gt;sp_spaceused 'TEST_DATE'
go

sp_spaceused 'TEST_VARCHAR8'
go

sp_spaceused 'TEST_VARCHAR10'
go&lt;/pre&gt;&lt;h4&gt;조회 결과&lt;/h4&gt;&lt;table class=&quot;txc-table&quot; width=&quot;758&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; style=&quot;border: none; border-collapse: collapse; width: 758px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;width: 168px; height: 24px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p&gt;&amp;nbsp;name&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 104px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p&gt;&amp;nbsp;rows&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 110px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p&gt;&amp;nbsp;reserved&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 150px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p&gt;&amp;nbsp;data&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 111px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p&gt;&amp;nbsp;index_size&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 113px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p&gt;&amp;nbsp;unused&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 168px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;TEST_DATE&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 104px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;65535&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 110px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); background-color: rgb(250, 244, 192);&quot;&gt;&lt;p&gt;&amp;nbsp;840 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 150px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); background-color: rgb(250, 244, 192);&quot;&gt;&lt;p&gt;&amp;nbsp;824 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 111px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;8 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 113px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;8 KB&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 168px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;TEST_VARCHAR8&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 104px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;65535&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 110px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); background-color: rgb(250, 244, 192);&quot;&gt;&lt;p&gt;&amp;nbsp;1480 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 150px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); background-color: rgb(250, 244, 192);&quot;&gt;&lt;p&gt;&amp;nbsp;1432 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 111px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;8 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 113px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;40 KB&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 168px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;TEST_VARCHAR10&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 104px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;65535&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 110px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); background-color: rgb(250, 244, 192);&quot;&gt;&lt;p&gt;&amp;nbsp;1608 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 150px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); background-color: rgb(250, 244, 192);&quot;&gt;&lt;p&gt;&amp;nbsp;1568 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 111px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;8 KB&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 113px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;32 KB&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4&gt;테이블 삭제&lt;/h4&gt;
&lt;pre class=&quot;brush: sql&quot;&gt;DROP TABLE TEST_DATE
GO

DROP TABLE TEST_VARCHAR8
GO

DROP TABLE TEST_VARCHAR10
GO&lt;/pre&gt;
&lt;h4&gt;결론&lt;/h4&gt;
&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;날짜형식의 컬럼이라면 VARCHAR 보다는 DATE 를 사용하자. 공간적인 측면과 데이터 정합성(&lt;i&gt; &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;VARCHAR는 날짜범위를 벗어나더라도 에러가 발생하지 않음&lt;/span&gt;&lt;/i&gt; ) 측면에서도 DATE가 더 효율적으로 보인다.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>SQL Server</category>
      <category>date</category>
      <category>SQL</category>
      <category>SQLServer</category>
      <category>varchar</category>
      <category>날짜</category>
      <category>비교</category>
      <category>컬럼</category>
      <category>크기</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/9</guid>
      <comments>https://iron4g.tistory.com/9#entry9comment</comments>
      <pubDate>Fri, 27 Jul 2018 13:36:07 +0900</pubDate>
    </item>
    <item>
      <title>SQL Server 날짜 및 시간 데이터타입 비교</title>
      <link>https://iron4g.tistory.com/8</link>
      <description>&lt;p&gt;날짜 및 시간 타입 (SQL Server 기준)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;table class=&quot;txc-table&quot; width=&quot;830&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; style=&quot;border: none; border-collapse: collapse; width: 830px;&quot; 맑은=&quot;&quot; 고딕&quot;,=&quot;&quot; sans-serif;font-size:13px&quot;=&quot;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;width: 124px; height: 24px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); background-color: rgb(217, 229, 255);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;타입&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 275px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(217, 229, 255);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;형식&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 208px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(217, 229, 255);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;날짜범위&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 92px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(217, 229, 255);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;문자길이&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 128px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(217, 229, 255);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;저장소크기&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 124px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/date-transact-sql?view=sql-server-2017&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;date&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 275px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;1900-01-01&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 208px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;0001-01-01 ~ 9999-12-31&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 92px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;10&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 128px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;3바이트(고정)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 124px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/datetime-transact-sql?view=sql-server-2017&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;datetime&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 275px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;1900-01-01 00:00:00.000&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 208px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 11pt;&quot;&gt;1753-01-01&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; ~ 9999-12-31&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 92px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;19 ~ 23&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 128px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;8바이트&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 124px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/datetime2-transact-sql?view=sql-server-2017&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;datetime2&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 275px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;1900-01-01 00:00:00.0000000&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 208px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;0001-01-01 ~ 9999-12-31&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 92px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;19 ~ 27&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 128px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;6 ~ 8바이트&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 124px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/datetimeoffset-transact-sql?view=sql-server-2017&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;datetimeoffset&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 275px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;1900-01-01 00:00:00.0000000 +00:00&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 208px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;0001-01-01 ~ 9999-12-31&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 92px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;26 ~ 34&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 128px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;10바이트(고정)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 124px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/smalldatetime-transact-sql?view=sql-server-2017&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;smalldatetime&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 275px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;1900-01-01 00:00:00&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 208px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 11pt;&quot;&gt;1900-01-01&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; ~ &lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 11pt;&quot;&gt;2079-06-06&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 92px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;최대 19&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 128px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;4바이트(고정)&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 124px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/ko-kr/sql/t-sql/data-types/time-transact-sql?view=sql-server-2017&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;time&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 275px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;00:00:00.0000000&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 208px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 92px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;8 ~ 16&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 128px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size:11pt;&quot;&gt;&amp;nbsp;4 ~&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt; 5&lt;/span&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;바이트&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;datetime 과 smalldatetime 의 날짜범위가 다른 형식과 다르므로 컬럼의 성격에 따라 사용에 주의가 필요함.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;데이터타입에 따라 문자열로 변환 시 위에 보이는 형식과 다르게 출력될 수 있음&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[예제쿼리]&lt;/p&gt;
&lt;pre class=&quot;brush: sql&quot;&gt; 
select 'date' as dtype, convert(varchar,convert(date,getdate())) as dtext
select 'datetime' as dtype, convert(varchar,convert(datetime,getdate())) as dtext
select 'datetime2' as dtype, convert(varchar,convert(datetime2,getdate())) as dtext
select 'datetimeoffset' as dtype, convert(varchar,convert(datetimeoffset,getdate())) as dtext
select 'smalldatetime' as dtype, convert(varchar,convert(smalldatetime,getdate())) as dtext
select 'time' as dtype, convert(varchar,convert(time,getdate())) as dtext
 
&lt;/pre&gt;
&lt;p&gt;[출력내용]&lt;/p&gt;&lt;table class=&quot;txc-table&quot; width=&quot;431&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; style=&quot;border: none; border-collapse: collapse; width: 431px;&quot; 맑은=&quot;&quot; 고딕&quot;,=&quot;&quot; sans-serif;font-size:13px&quot;=&quot;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;width: 138px; height: 24px; border-width: 1px; border-style: solid; border-color: rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;&amp;nbsp;dtype&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 292px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-top: 1px solid rgb(204, 204, 204); background-color: rgb(234, 234, 234);&quot;&gt;&lt;p style=&quot;text-align: center;&quot;&gt;dtext&amp;nbsp;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 138px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;date&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 292px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;2018-07-26&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 138px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;datetime&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 292px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;07 26 2018&amp;nbsp; 5:37PM&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 138px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;datetime2&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 292px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;2018-07-26 17:37:57.0900000&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 138px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;datetimeoffset&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 292px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;2018-07-26 17:37:57.0900000 +00:00&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 138px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;smalldatetime&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 292px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;07 26 2018&amp;nbsp; 5:38PM&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 138px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;time&lt;/p&gt;&lt;/td&gt;
&lt;td style=&quot;width: 292px; height: 24px; border-bottom: 1px solid rgb(204, 204, 204); border-right: 1px solid rgb(204, 204, 204);&quot;&gt;&lt;p&gt;&amp;nbsp;17:37:57.0900000&lt;/p&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;datetime 을 형식 그대로 문자열로 변환하기 위해서는 아래와 같이 사용&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[참고]&lt;/p&gt;&lt;blockquote class=&quot;tx-quote-tistory&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://docs.microsoft.com/ko-kr/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2017#date-and-time-styles&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;CAST 및 CONVERT(Transact-SQL) &amp;gt; 날짜 및 시간 스타일&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[쿼리]&lt;/p&gt;
&lt;pre class=&quot;brush: sql&quot;&gt;select convert(varchar(255),convert(datetime,getdate()),121)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[결과]&lt;/p&gt;
&lt;pre class=&quot;brush: text&quot;&gt;2018-07-26 18:46:40.510&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;smalldatetime 을 형식 그대로&amp;nbsp;문자열로 변환하기 위해서는 아래와 같이 사용&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[쿼리]&lt;/p&gt;
&lt;pre class=&quot;brush: sql&quot;&gt;select convert(varchar(255),convert(smalldatetime,getdate()),120)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[결과]&lt;/p&gt;
&lt;pre class=&quot;brush: text&quot;&gt;2018-07-26 18:46:40&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>SQL Server</category>
      <category>date</category>
      <category>datetime</category>
      <category>datetime2</category>
      <category>datetimeoffset</category>
      <category>smalldatetime</category>
      <category>SQL</category>
      <category>SQLServer</category>
      <category>Time</category>
      <category>날짜</category>
      <category>데이터타입</category>
      <category>변환</category>
      <category>비교</category>
      <category>시간</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/8</guid>
      <comments>https://iron4g.tistory.com/8#entry8comment</comments>
      <pubDate>Thu, 26 Jul 2018 17:43:41 +0900</pubDate>
    </item>
    <item>
      <title>Visual Studio Code git.path 설정</title>
      <link>https://iron4g.tistory.com/7</link>
      <description>&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;Visual Studio Code 실행 시&amp;nbsp;Git가 설치되지 않아 아래와 같은 오류 출력&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 578px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99972C3E5B5875120D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99972C3E5B5875120D&quot; width=&quot;578&quot; height=&quot;139&quot; filename=&quot;01_vscode_git_path_설정.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;위 경로 외에 다른 경로 설치 시 git.exe 를 찾지 못해 메시지가 계속 출력됨&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Git 설치 경로 :&amp;nbsp;D:\DEV\Program Files\Git&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;이런 경우 사용자 설정을 변경하여 git.path를 추가해 주어야 한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;파일 &amp;gt; 기본 설정 &amp;gt; 설정 ( 단축키: Ctrl + , )&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;설정 검색에서 git.path 입력&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;git.path 선택 후 &quot;편집&quot; 클릭 &amp;gt; &quot;설정에 복사&quot; 클릭&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 615px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9916F74F5B5879B618&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9916F74F5B5879B618&quot; width=&quot;615&quot; height=&quot;303&quot; filename=&quot;02_vscode_git_path_설정.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;사용자 설정에 git.path 추가 후 경로 수정&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 652px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99A6ED4D5B5879E504&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99A6ED4D5B5879E504&quot; width=&quot;652&quot; height=&quot;199&quot; filename=&quot;03_vscode_git_path_사용자설정.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;주의 : 경로 수정 시 \ 를 \\ 로 바꿔서 입력해야 함&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;사용자 설정 저장 후 VSCode 재시작&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 647px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99FC9F485B587BFC0A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99FC9F485B587BFC0A&quot; width=&quot;647&quot; height=&quot;199&quot; filename=&quot;04_vscode_git_path_설정후메시지.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;git.path 설정은 정상적으로 변경되었으나 아래 fatal 오류 발생&lt;/p&gt;</description>
      <category>기타</category>
      <category>Code</category>
      <category>Git</category>
      <category>git.path</category>
      <category>Studio</category>
      <category>Visual</category>
      <category>VisualStudioCode</category>
      <category>vscode</category>
      <category>사용자설정</category>
      <category>설정</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/7</guid>
      <comments>https://iron4g.tistory.com/7#entry7comment</comments>
      <pubDate>Wed, 25 Jul 2018 22:35:24 +0900</pubDate>
    </item>
    <item>
      <title>SSMS 2017 테이블 디자이너 컬럼 추가</title>
      <link>https://iron4g.tistory.com/5</link>
      <description>&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: double; border-width: 3px; border-color: rgb(121, 165, 228); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;SSMS 2017 테이블 디자이너 컬럼 추가&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;최근 개발용 노트북을 포맷하고 개발 환경을 새로 구축하면서 SSMS 17.6 버전을 다운받아 설치하였으나 기존에 쓰던 테이블 디자이너에 Description 컬럼과&amp;nbsp;Default Value 컬럼을 추가하는 레지스트리가 적용되지 않아 찾아보니 레지스트리 위치가 변경되었다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 기존 위치 : SSMS 2014 기준 (빌드번호 12) ]&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;&quot;&gt;&lt;p&gt;[HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\12.0\DataProject]&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 변경된 위치 : SSMS 17.6 기준 (빌드번호 14) ]&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;&quot;&gt;&lt;p&gt;[HKEY_USERS\&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;S-1-5-21-3945878731-2119468147-2157690403-1001&lt;/b&gt;&lt;/span&gt;\Software\Microsoft\SQL Server Management Studio\14.0\DataProject]&lt;/p&gt;&lt;/div&gt;&lt;p&gt;( * 붉은 색 글씨 부분의 값이 유니크한 값인지 PC에 따라 바뀌는 값인지는 확인하지 못하였습니다. )&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 변경된 위치 : SSMS 18.6&amp;nbsp;기준 (빌드번호 15) ] &lt;span style=&quot;color: rgb(0, 85, 255);&quot;&gt;* 2020-09-16 추가&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;&quot;&gt;&lt;p&gt;[HKEY_USERS\&lt;b&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;S-1-5-21-446256079-2364936858-1252886875-1001&lt;/span&gt;&lt;/b&gt;\Software\Microsoft\SQL Server Management Studio\18.0_IsoShell\DataProject]&lt;/p&gt;&lt;/div&gt;&lt;p&gt;( * 붉은 색 글씨 부분은&amp;nbsp;PC에 따라 바뀌는 값으로 확인됩니다.)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;위의 위치에서 아래 항목을 찾아 값 데이터를 수정해 주면 된다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 수정항목 ]&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;&quot;&gt;&lt;p&gt;SSVPropViewColumnsSQL70&lt;/p&gt;&lt;p&gt;SSVPropViewColumnsSQL80&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 기본값 ]&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;&quot;&gt;&lt;p&gt;1,2,6;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 컬럼 항목 번호]&lt;/b&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(231, 253, 181); background-color: rgb(231, 253, 181); padding: 10px;&quot;&gt;&lt;p&gt;# Property sequence:&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;1. Column Name (Default)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;2. Data Type (Default)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;3. Length&lt;/p&gt;&lt;p&gt;4. Precision&lt;/p&gt;&lt;p&gt;5. Scale&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;6. Allow Nulls (Default)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;7. Default Value&lt;/p&gt;&lt;p&gt;8. Identity&lt;/p&gt;&lt;p&gt;9. Identity Seed&lt;/p&gt;&lt;p&gt;10. Identity Increment&lt;/p&gt;&lt;p&gt;11. Row GUID&lt;/p&gt;&lt;p&gt;12. Nullable&lt;/p&gt;&lt;p&gt;13. Condensed Type&lt;/p&gt;&lt;p&gt;14. Not for Replication&lt;/p&gt;&lt;p&gt;15. Formula&lt;/p&gt;&lt;p&gt;16. Collation&lt;/p&gt;&lt;p&gt;17. Description&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;개인적으로 자주 사용하는 (17) Description, (7) Default Value 항목을 추가 후 SSMS를 재실행하였다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 적용 전 ]&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 389px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/996ED5505AD5A62829&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F996ED5505AD5A62829&quot; width=&quot;389&quot; height=&quot;231&quot; filename=&quot;SSMS_TableDesigner_Default.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;[ 적용 후 ]&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 643px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/999BE4455AD5A64C29&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F999BE4455AD5A64C29&quot; width=&quot;643&quot; height=&quot;232&quot; filename=&quot;SSMS_TableDesigner_AddColumns.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>기타</category>
      <category>2017</category>
      <category>default</category>
      <category>DefaultValue</category>
      <category>description</category>
      <category>ManagementStudio</category>
      <category>SQLServer</category>
      <category>SSMS</category>
      <category>SSVPropViewColumnsSQL70</category>
      <category>SSVPropViewColumnsSQL80</category>
      <category>value</category>
      <category>디자이너</category>
      <category>테이블</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/5</guid>
      <comments>https://iron4g.tistory.com/5#entry5comment</comments>
      <pubDate>Tue, 17 Apr 2018 16:51:51 +0900</pubDate>
    </item>
    <item>
      <title>원격 데스크톱 접속포트 변경하기</title>
      <link>https://iron4g.tistory.com/4</link>
      <description>&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: double; border-width: 3px; border-color: rgb(121, 165, 228); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;원격 데스크톱 접속포트 변경하기&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. 레지스트리에서 접속포트 변경하기&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;실행창(Win + R) &amp;gt; regedit.exe 입력 후 실행 후 아래 위치로 이동&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(254, 254, 184); background-color: rgb(254, 254, 184); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;PortNumber 항목을 더블 클릭한 후 단위를 10진수(D)로 변경한 후 원하는 포트번호 입력&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 389px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/990659405AC1F01C2B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F990659405AC1F01C2B&quot; width=&quot;389&quot; height=&quot;180&quot; filename=&quot;regedit.exe.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;2. 방화벽에서 접속포트에 대한 인바운드 규칙 추가하기&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;규칙 종류 : 포트(O) 선택&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px; width: 700px; height: 381px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99BFDD4D5AC1F4F034&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99BFDD4D5AC1F4F034&quot; width=&quot;700&quot; height=&quot;381&quot; filename=&quot;firewall_inbound.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 700px; height: 381px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;프로토콜 및 포트 : TCP(T) 선택, 특정 로컬 포트(S)에 원하는 포트번호 입력&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px; width: 700px; height: 381px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99F4F44D5AC1F4EE2D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99F4F44D5AC1F4EE2D&quot; width=&quot;700&quot; height=&quot;381&quot; filename=&quot;firewall_inbound.2.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 700px; height: 381px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;작업 : 연결허용(A) 선택&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px; width: 700px; height: 380px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9983054D5AC1F4EE21&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9983054D5AC1F4EE21&quot; width=&quot;700&quot; height=&quot;380&quot; filename=&quot;firewall_inbound.3.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 700px; height: 380px;&quot; original=&quot;yes&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;프로필 : 전체 체크 (보안정책에 따라 선택)&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px; width: 700px; height: 381px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99EFF74D5AC1F4EF2F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99EFF74D5AC1F4EF2F&quot; width=&quot;700&quot; height=&quot;381&quot; filename=&quot;firewall_inbound.4.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 700px; height: 381px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;이름 : 원하는 이름&amp;nbsp;입력 후 마침 클릭 (설명은 생략 가능)&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px; width: 700px; height: 381px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9902004D5AC1F4EF2D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9902004D5AC1F4EF2D&quot; width=&quot;700&quot; height=&quot;381&quot; filename=&quot;firewall_inbound.5.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 700px; height: 381px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;추가된 인바운드 규칙 확인&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 755px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99A118475AC1F5F709&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99A118475AC1F5F709&quot; width=&quot;755&quot; height=&quot;219&quot; filename=&quot;firewall_inbound.6.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;3. 원격데스크탑 서비스 재시작&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;시작 &amp;gt; 관리도구 &amp;gt; 서비스 클릭&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;or&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;실행창(Win + R) &amp;gt; services.msc 입력 후 실행&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;Remote Desktop Services 선택 후 다시 시작 클릭&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 819px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/998945505AC1F7D72D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F998945505AC1F7D72D&quot; width=&quot;819&quot; height=&quot;298&quot; filename=&quot;services.msc.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Windows</category>
      <category>레지스트리</category>
      <category>방화벽</category>
      <category>원격데스크탑</category>
      <category>원격데스크톱</category>
      <category>윈도우</category>
      <category>윈도우서버</category>
      <category>접속포트</category>
      <category>접속포트변경</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/4</guid>
      <comments>https://iron4g.tistory.com/4#entry4comment</comments>
      <pubDate>Mon, 2 Apr 2018 18:29:09 +0900</pubDate>
    </item>
    <item>
      <title>원격 데스크톱 접속 로그 확인</title>
      <link>https://iron4g.tistory.com/3</link>
      <description>&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: double; border-width: 3px; border-color: rgb(121, 165, 228); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;원격 데스크톱 접속 로그 확인하기&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;시작 &amp;gt; 관리도구 &amp;gt; 이벤트 뷰어 클릭&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;p&gt;실행창(Win + R) &amp;gt; eventvwr.exe 입력 후 실행&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;응용 프로그램 및 서비스 로그 &amp;gt; Microsoft &amp;gt; Windows &amp;gt; TerminalServices-LocalSessionManager &amp;gt; Operational&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;작업창에서 현재 로그 필터링 선택 ( 작업창이 보이지 않는 경우 보기 &amp;gt; 사용자 지정 클릭한 후 작업 창 체크)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;필터링 창에서 조회 조건 설정 후 확인버튼 클릭&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: solid; border-width: 1px; border-color: rgb(243, 197, 52); background-color: rgb(254, 254, 184); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;[ 이벤트ID 목록 ]&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;21 : 세션 로그온 성공&lt;/p&gt;&lt;p&gt;22 : 셸 시작 알림 받음&lt;/p&gt;&lt;p&gt;23 : 세션 로그오프 성공&lt;/p&gt;&lt;p&gt;24 : 세션 연결 끊김&lt;/p&gt;&lt;p&gt;25 : 세션 다시 연결 성공&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;예제) 기간 : 최근 30일, 로그온 및 세션 다시 연결 로그&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 546px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9978274F5AC1DD3611&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9978274F5AC1DD3611&quot; width=&quot;546&quot; height=&quot;544&quot; filename=&quot;eventvwr.exe.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;조회 된 이벤트 로그 선택 시 아래와 같이 사용자 및 접속IP를 확인할 수 있다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 609px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99B137505AC1DFB02D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99B137505AC1DFB02D&quot; width=&quot;609&quot; height=&quot;517&quot; filename=&quot;eventvwr.exe.2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>Windows</category>
      <category>eventvwr</category>
      <category>eventvwr.exe</category>
      <category>다시연결</category>
      <category>로그</category>
      <category>로그오프</category>
      <category>로그온</category>
      <category>원격데스크탑</category>
      <category>원격데스크톱</category>
      <category>윈도우</category>
      <category>이벤트뷰어</category>
      <category>접속로그</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/3</guid>
      <comments>https://iron4g.tistory.com/3#entry3comment</comments>
      <pubDate>Mon, 2 Apr 2018 16:46:00 +0900</pubDate>
    </item>
    <item>
      <title>원격 데스크톱 활성 세션 시간 제한 설정</title>
      <link>https://iron4g.tistory.com/2</link>
      <description>&lt;p&gt;이 포스트는 Windows Server 2008 R2 버전을&amp;nbsp;기준으로 작성되었습니다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: double; border-width: 3px; border-color: rgb(121, 165, 228); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;방법 1. 원격 데스크톱 서비스가 설치되어 있는 경우&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;시작 &amp;gt; 관리도구 &amp;gt; 원격 데스트톱 서비스 &amp;gt; 원격 데스크톱 세션 호스트 구성&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;p&gt;실행창(Win + R)&amp;nbsp;&amp;gt; tsconfig.msc 입력 후 실행&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 700px; width: 700px; height: 478px;; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99D538405AC1B77F2C&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99D538405AC1B77F2C&quot; width=&quot;700&quot; height=&quot;478&quot; filename=&quot;tsconfig.msc.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;width: 700px; height: 478px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;연결 &amp;gt; 연결 이름 선택 후 마우스 우클릭하여 속성 선택&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;세션 탭으로 이동 한 후 아래와 같이 설정 후 적용 (설정 시간은 보안 정책에 따라 변경하도록 함)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 469px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99E52F3B5AC1BDA924&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99E52F3B5AC1BDA924&quot; width=&quot;469&quot; height=&quot;468&quot; filename=&quot;tsconfig.msc.2.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;border-style: double; border-width: 3px; border-color: rgb(121, 165, 228); background-color: rgb(219, 232, 251); padding: 10px;&quot;&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;방법 2. 원격 데스크톱 서비스가 설치되어 있지 않은&amp;nbsp;경우&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;실행창 &amp;gt; gpedit.msc 입력 후 실행&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;로컬 컴퓨터 정책 &amp;gt; 컴퓨터 구성 &amp;gt; 관리 템플릿 &amp;gt; Windows 구성 요소 &amp;gt; 터미널 서비스 &amp;gt; 원격 데스크톱 세션 호스트 &amp;gt; 세션 시간 제한&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 900px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99812B3B5AC1C82426&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99812B3B5AC1C82426&quot; width=&quot;900&quot; height=&quot;309&quot; filename=&quot;gpedit.msc.png&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;보안정책에 따라 각 항목의 사용여부 및 시간 설정 후 적용&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;적용 예)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. 연결 끊어진 세션에 시간 제한 설정 클릭 &amp;gt; 사용 &amp;gt; 연결 끊어진 세션 종료 (30분)&lt;/p&gt;&lt;p&gt;2. 활성 상태지만 유휴 터미널 서비스 세션에 시간 제한 설정 &amp;gt; 사용 &amp;gt; 유휴&amp;nbsp;세션 제한 (10분)&lt;/p&gt;&lt;p&gt;3. 활성 원격 데스크톱 서비스 세션에 대한 시간 제한 설정 &amp;gt; 사용 &amp;gt; 활성 세션 제한 (1시간)&lt;/p&gt;&lt;p&gt;4. 시간 제한에 도달하면 세션 종료 &amp;gt; 사용&lt;/p&gt;&lt;p&gt;5. RemoteApp 세션의 로그오프에 시간 제한 설정 &amp;gt; 사용 &amp;gt; RemoteApp 세션 로그오프 지연 (30분)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;※ 참고: 이 정책 설정은 컴퓨터 구성과 사용자 구성에 모두 있습니다. 두 정책 설정을 모두 구성하면 &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;컴퓨터 구성 정책 설정이 우선&lt;/span&gt;합니다.&lt;/b&gt;&lt;/p&gt;</description>
      <category>Windows</category>
      <category>gpedit</category>
      <category>gpedit.msc</category>
      <category>RDP</category>
      <category>tsconfig</category>
      <category>tsconfig.msc</category>
      <category>세션</category>
      <category>세션호스트</category>
      <category>시간제한</category>
      <category>원격데스크탑</category>
      <category>원격데스크톱</category>
      <category>윈도우</category>
      <author>SEA&amp;amp;SUN</author>
      <guid isPermaLink="true">https://iron4g.tistory.com/2</guid>
      <comments>https://iron4g.tistory.com/2#entry2comment</comments>
      <pubDate>Mon, 2 Apr 2018 14:25:03 +0900</pubDate>
    </item>
  </channel>
</rss>