본문 바로가기

프로그램 경험

[SqlServer] 원격 DB 조회 하기(OpenRowSet) SELECT * FROM OPENROWSET('SQLOLEDB','192.168.0.100';'userid';'passwd','SELECT * FROM TMP.dbo.BaseTable WITH (NOLOCK)');
[C#] 간단 파일 생성 및 읽기 *파일 쓰기 string codes = "ABC"; FileInfo file = new FileInfo(saveFileDialog1.FileName);FileStream fs = file.Create(); TextWriter tw = new StreamWriter(fs, Encoding.UTF8);tw.Write(codes); tw.Close();fs.Close(); *파일 읽기 FileInfo file = new FileInfo(openFileDialog1.FileName);TextReader tr = file.OpenText();string codes = tr.ReadToEnd(); tr.Close(); MessageBox.Show(codes);
[C#] 디버그 출력 System.Diagnostics.Debug.WriteLine("디디디");
[C#] FlowLayoutPanel 안에 컨트롤 순서 변경하기 플로우 레이아웃 컨트롤 내부에 있는 컨트롤의 순서를 변경 하고 싶다.예를들어 2번째에 있는 컨트롤을 1번째로 변경하고 싶은것이다. Control c = pnlBarContainer.Controls[2];pnlBarContainer.Controls.SetChildIndex(c, 1);pnlBarContainer.Invalidate(); 간단하다~
[C#] MIDI 제어 하기 http://code.google.com/p/midi-dot-net/
[ASP.NET] 크리스탈 리포트 오류.. The page size was not large enough to format the contents of an object in the report.Failed to export the report. The page size was not large enough to format the contents of an object in the report.Failed to export the report.Error in File C:\WINDOWS\TEMP\{0FE913D8-636C-4456-BED9-FC9916F22DC4}.rpt:Page header or footer longer than a page. 설명: 현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 발생했습니다. 스택 추적을 검토하여 발생한 오류 및 코드에서 오류가 발생한 위치에 대한 자세한 정보를 확인하십시오. 예외 정보: System.Runtime.InteropServices.COMException: The page size was no..
[ASP.NET] The types of the parameter field and parameter field current values are not compatible. 크리스탈리포트를 출력하는 화면에서 오류 발생. The types of the parameter field and parameter field current values are not compatible. 살펴보니 리포트 변수의 타입과 프로그램에서 넘겨주는 값의 타입이 달라서 발생하는 오류 였다.타입 맞춰주니 해결됨.
[Rails] WEBrick 재실행시 서버가 이미 연결되있다는 오류 WEBrick 서버 종료후에 다시 서버를 시작하는데 계속 서버가 살아 있다는 개소리를... 찾아보니 개발하고 있는 레일즈 폴더 안에 tmp 폴더 안에 pids폴더가 있는데 그곳에 server.pid 파일이 존재하면 서버가 살아 있는걸로 인식함. 파일 삭제 하면 정상 작동 됨.