2008서버에 xml데이터형으로 존재하는 컬럼을 select하는데

 

SQL server management studio로 해당 컬럼을 select하면 데이터가 존재하는데...

 

JDBC드라이버(sqljdbc4.jar)를 이용하여 해당 컬럼을 select하면 null값으로 나옵니다.

 

cast , convert  / nvarchar(max)로 변환을 해도 값을 못갖고 오네요...

 

해당 xml 데이터형 컬럼의 값은 jsp소스의 내용을 긁어 넣은 값들이 들어가 있구요...(xml형태의 데이터는 아닙니다.)

 

- 더 궁금한것은 JDBC를 이용하여 select했을 경우 해당 컬럼의 모든 값이 null로 나오는것은 아니고 일부는 값이 나오고 일부는 null로 나오고 있어 데이터를 비교했을때도 특별한 차이가 없어서 난감한 상황입니다.

 

도움을 부탁 드립니다.

 

혹시나 해서 해당 컬럼의 데이터의 일부는 아래와 같습니다.

 

(xml 데이터형 컬럼 값 발췌)

 

<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr"><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><style>body {font-family : 굴림,굴림체, Arial, Microsoft Sans Serif;font-size : 9pt;background-color:transparent;color : #4444;scrollbar-face-color: #D4D0D0; scrollbar-shadow-color: #F5F4F4;scrollbar-highlight-color:#F5F4F4; scrollbar-3dlight-color: #FFFFFF;scrollbar-darkshadow-color: #FFFFFF; scrollbar-track-color: #F5F4F4;scrollbar-arrow-color: #gray}textarea {font-family : 굴림;font-size : 9pt;color : black;}td {font-family : 굴림;font-size : 9pt;color : black;}a:visited {font-family : 굴림;font-size : 9pt;color: #8E8E8E;text-decoration : none;}a:link,active {font-family : 굴림;font-size : 9pt;color: #0033cc;text-decoration : none;}Input, Select {font-family: 굴림;font-size: 9pt;vertical-align : middle;text-decoration: none;border:1x solid #D5DADF;}#text_contents {  font-family: 굴림; font-size: 12px; color: #181818; text-decoration: none; line-height: 18px; border: 2px #EFF3F6 solid; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px}#text_contents a:link{color: #1344A7; text-decoration: none}#text_contents a:visited{color: #1344A7; text-decoration: none}#text_contents a:hover{font-family: 굴림; font-size: 12px; color: #1344A7; text-decoration: underline}#text_contents a:active{font-family: 굴림; font-size: 12px; color: #1344A7; text-decoration: underline}#staticcell {font-family : 굴림,Arial, Microsoft Sans Serif;font-size : 9pt;color : #333333;background-color : #E6E9EB;line-height : 18px;}#staticcell_font {font-family : 굴림,Arial, Microsoft Sans Serif;font-size : 12pt;color : #333333;line-height : 18px;}#staticcell_no {font-family : 굴림,Arial, Microsoft Sans Serif;font-size : 9pt;color : #333333;line-height : 18px;}#staticcell_sub {font-family : 굴림,Arial, Microsoft Sans Serif;font-size : 9pt;color : #333333;background-color : #F2F4F5;line-height : 18px;}#contentcell {font-family : 굴림,Arial, Microsoft Sans Serif;font-size : 9pt;color : #333333;padding-left: 4px;background-color : #FFFFFF;line-height : 18px;}#contentcell a:link{font-family: 굴림; font-size: 9pt; color: #000000; text-decoration: none}#contentcell a:visited{font-family: 굴림; font-size: 9pt; color: #000000; text-decoration: none}#contentcell a:hover{font-family: 굴림; font-size: 9pt; color: #000000; text-decoration: none }#contentcell a:active{font-family: 굴림; font-size: 9pt; color: #000000; text-decoration: none }#contenttext {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;color : #636363;line-height : 18px;}#contenttexttmp {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;color : #546599;background-color : #EDF1FC;line-height : 18px;}#aprcontentcell {font-family : 굴림,Arial, Microsoft Sans Serif;font-size : 9pt;color : #546599;background-color : #EDF1FC;line-height : 18px;}#aprBasicInfoTitle {font-family: 굴림, Arial, Microsoft Sans Serif;font-size: 9pt;color : #2A2A8C;background-color : #E1E8FC;vertical-align:middle;text-align:center;line-height : 23px;}#aprInfoContent {font-family : 굴림, Arial, Microsoft Sans Serif;font-size: 9pt;color : #3232A6;background-color : #EDF1FC;vertical-align:middle;text-align:center;line-height : 23px;}#aprStatusContent {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;color : #3232A6;background-color : #EDF1FC;vertical-align:top;text-align:center;line-height : 23px;}#aprPlusInfoTitle {font-family : 굴림, Arial, Microsoft Sans Serif; font-size : 9pt;color : #2A2A8C;background-color : #E1E8F7;vertical-align:middle;text-align:center;line-height : 23px;}#aprBottomComment {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;vertical-align:middle;text-align:center;line-height : 23px;}#aprContentComment {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;vertical-align:middle;text-align:left;line-height : 20px;}#aprCenterComment {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;vertical-align:middle;text-align:center;line-height : 20px;}#aprRightComment {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;vertical-align:middle;text-align:right;line-height : 20px;}#aprLeftContent {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;color : #3232A6;background-color : #EDF1FC;vertical-align:middle;text-align:left;line-height : 23px;}#aprPlusInfoTitle_app {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;color : #000000;background-color : #ffffff;vertical-align:middle;text-align:center;line-height : 23px;}#aprInfoContent_app {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;color : #000000;background-color : #ffffff;vertical-align:middle;text-align:center;line-height : 23px;}#contentcell_app {font-family : 굴림, Arial, Microsoft Sans Serif;font-size : 9pt;color : #3232A6;background-color : #EDF1FC;line-height : 23px;}</style>
</head>
<!--서식별 히든 필드 시작-->
<div style="display:none">
</div>
<!-- Start Body -->
<!-- Body -->
<script>

...생략

 

No. Subject Author Date Views
Notice SQL강좌: 챗GPT와 함께 배우는 SQL Server 무료 강좌 목차와 소개 (2023년 9월 업데이트) 코난(김대우) 2023.08.18 38132
Notice Python 무료 강좌 - 기초, 중급, 머신러닝(2023년 6월 업데이트) 코난(김대우) 2021.01.01 20674
7063 sql 2008에서 랜덤하게 숫자를 생성할때 [1] 민성 2013.08.05 5753
7062 각각 레코드에서 다른 래코드의 속성의 대한 연산을 할수 있나요? kimjunhong 2013.08.05 4851
7061 로그인 제한 관련 질문입니다. [1] memento 2013.08.05 41687
7060 [관리] 백업 파일 삭제 [2] 쓰름매미 2013.08.05 6624
7059 이중 커서 사용 그리고 원하는 데이터 추출을 위한 속도개선 방법.. [2] Larry 2013.08.03 15149
7058 서버2012 설치에 큰 문제가 있습니다 도와주세요 [2] P.H 2013.08.02 5535
7057 킬럼에 A, B, C 형태로 문자열이 있고 이걸 in 인라인 쿼리로 조회가 가능할까요? [2] 백승희_291263 2013.08.02 4802
7056 이건 쿼리를 어떻게 잡아야 할까요? [2] 카루카루 2013.08.02 5052
7055 암호 변경 로그 정보 확인 방법 문의 [7] 껄껄껄 2013.08.02 5341
7054 row_num 관련 질문 드립니다. [2] 형님 2013.08.02 4521
7053 db 저장방식 질문입니다. [4] 거저먹네 2013.08.02 5363
7052 시스템 카탈로그 임의 수정이 안되네요.. [2] Larry 2013.08.01 4232
7051 웹사이트의 CharSet 설정과 Database의 Collation ... 그 외 상관 관계... Larry 2013.07.31 8430
7050 쿼리문 질문 [6] 황영식_314681 2013.07.30 4536
7049 선배님들 프로시저(락 관련) 조언좀 부탁드립니다... [3] alima 2013.07.30 6447
» xml 데이터형의 컬럼을 select 하는데.. [3] 강승생 2013.07.30 4645
7047 해외 서버에 웹사이트를 이전 시켰는데 DB에서 불러온 한글만 깨져요.. [12] Larry 2013.07.26 10614
7046 asp로 ms-sql 2005의 타이틀 컬럼 앞 10자리만 수정시... [2] 다크나인 2013.07.26 6355
7045 SQL DB를 활용하여 회사 프로그램을 작성해야하는데요 MFC 와 C# [2] 씨쎔 2013.07.26 4585
7044 테이블안에 중복 아이디에 순번을 먹이고 싶습니다... [1] dcman 2013.07.25 5056





XE Login