허당 레몬도리
CHARINDEX를 이용한 문자열 SPLIT
가. 언어유형/SQL Query 2014. 7. 2. 15:55

CHARINDEX 함수를 이용하여, 문자열을 쪼개어 테이블에 넣어 리턴하는 테이블리턴함수 입니다. 여러 번 작성했었는데, 간만에 그냥 테스트 해 보며 머릿속에서 나오는 대로 코딩해 보았습니다. 넘겨지는 원문은 긴 데이터도 받아들일 수 있도록 NTEXT를 받을 수 있게 구현 되어 있습니다. 해당 테이블 리턴 함수를 이용하여 alias를 주고, 다른 테이블과 JOIN 하며 처리하면 활용도가 높겠죠. ㅎ NTEXT 데이터 타입도, SUBSTRING 과 CHARINDEX 라는 훌륭한 문자열 함수를 적용시킬 수 있다는 좋은 예제라고 생각 됩니다. ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34..

[Web]Xml Edit/Viewer
가. 언어유형 2014. 7. 1. 15:54

xml관련해서 프로그래밍 중에 보기 힘든 문자열에 xml를 보기 편하게 할 방법을 찾다가 발견한 사이트인데 xml 입력하면 구조를 트리형태로 보여준다. 완성률도 높고 보기도 편하다. http://xmlgrid.net/

언어별 튜토리얼 사이트
가. 언어유형 2014. 6. 25. 15:56

http://www.java2s.com/

C# 비동기 메서드 샘플
가. 언어유형/C# 2013. 10. 1. 16:39

Call a Method Asynchronously using Delegate BeginInvoke and EndInvoke Patternhttp://www.dotnetcurry.com/ShowArticle.aspx?ID=634

엑셀 숫자 형변환 방지
가. 언어유형/C# 2013. 7. 12. 15:13

엑셀엑셀변환시 형변환 방지 (텍스트가 숫자로 변환될때)style="mso-number-format:\@" Response.ContentType = "application/vnd.ms-excel"; //excel인지 word인지 구분 Response.AddHeader("Content-Disposition", "attachment; fileName=Stationery.xls"); // 저장할 파일명 지정 Response.Charset = "UTP-8"; /* */ System.IO.StringWriter tw = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw); GridView..

JSON 타입의 직렬화, 역직렬화
가. 언어유형/C# 2013. 7. 12. 14:18

/// /// JSON 타입의 직렬화 /// /// /// /// public static string Serialize(T obj) { string json = null; using (MemoryStream ms = new System.IO.MemoryStream()) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(obj.GetType()); serializer.WriteObject(ms, obj); json = Encoding.UTF8.GetString(ms.ToArray()); } return json; } /// /// JSON 타입의 역직렬화 /// /// /// /// public static T Deseria..

MS_Description 삭제하기
가. 언어유형/SQL Query 2013. 4. 2. 11:03

--tables select 'EXEC sp_dropextendedproperty @name = ''MS_Description'' ,@level0type = ''schema'' ,@level0name = ' + object_schema_name(extended_properties.major_id) + ' ,@level1type = ''table'' ,@level1name = ' + object_name(extended_properties.major_id) from sys.extended_properties where extended_properties.class_desc = 'OBJECT_OR_COLUMN' and extended_properties.minor_id = 0 and extended_prop..