1 / 17

양승혁 Yang_ka@kunsan.ac.kr 군산대학교 통계컴퓨터과학과 정보과학기술 연구실 2012.08.01

A S P. Chap 9. Command 와 ADOError 개체. 양승혁 Yang_ka@kunsan.ac.kr 군산대학교 통계컴퓨터과학과 정보과학기술 연구실 2012.08.01. 목차. Command 와 ADOError 개체 ADODB.Command 구성요소 개체 사용 스트어드 프로스저 Parameters 컬렉션 ADO 와 오류처리 Errors 컬렉션 Error 개체 ADO 오류관리. Command 개체 (1/3). Command 개체

quinto
Télécharger la présentation

양승혁 Yang_ka@kunsan.ac.kr 군산대학교 통계컴퓨터과학과 정보과학기술 연구실 2012.08.01

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A S P Chap 9. Command와 ADOError개체 양승혁 Yang_ka@kunsan.ac.kr 군산대학교 통계컴퓨터과학과 정보과학기술 연구실 2012.08.01

  2. 목차 • Command와 ADOError개체 • ADODB.Command • 구성요소 • 개체 사용 • 스트어드프로스저 • Parameters 컬렉션 • ADO와 오류처리 • Errors 컬렉션 • Error 개체 • ADO 오류관리 IST (Information Sciences & Technology) Laboratory

  3. Command 개체(1/3) • Command 개체 • 데이터 소스에 명령을 전송, 실행 하는 역할 • 구성요소 • 메소드 IST (Information Sciences & Technology) Laboratory

  4. Command 개체(2/3) • Command 개체 • 속성 IST (Information Sciences & Technology) Laboratory

  5. Command 개체(3/3) ([RecordsAffected],[Parameters],[Options]) Set cmdTitles=Server.CreateObjet(“ADODB.Command”) cmdTitles.CommandText=“Titles” cmdTitles.CommandType=adCmdTable Set objRs=comdTitles.Execute • Command 개체 • 레코드셋 반환 • Command.Execute IST (Information Sciences & Technology) Laboratory

  6. 스트어드프로스저(1/8) • 스트어드 프로시저(Stored Procedure) • 자주 사용되거나 복잡한 과정을 가지고 있는 쿼리를 저장하여 하나의 개체로 관리하는 것 • 서버에 미리 컴파일 되어 저장 되어 있음 IST (Information Sciences & Technology) Laboratory

  7. 스트어드프로스저(2/8) • Parameters 컬렉션 • 속성 • 메소드 IST (Information Sciences & Technology) Laboratory

  8. 스트어드프로스저(3/8) • Parameters 컬렉션 • Parameter 개체의 속성 • Attributes • Direction • Name • NumericScale • Size • Type • Value IST (Information Sciences & Technology) Laboratory

  9. 스트어드프로스저(4/8) • Parameter 개체의 속성 • Attributes • 매개변수의 속성을 설정하는데 사용 • ParameterAttributesEnym IST (Information Sciences & Technology) Laboratory

  10. 스트어드프로스저(5/8) • Parameter 개체의 속성 • Direction • 매개변수가 입력용인지,출력용인지, 입출력이 가능한지 나타내는 속성 • ParameterDirectionEnym IST (Information Sciences & Technology) Laboratory

  11. 스트어드프로스저(6/8) • Parameter 개체의 속성 • Name • 매개변수 이름,스토어드 프로시저의 매개변수며과 동일 • NumericScale • 숫자형 매개변수의 소수점 자리를 설정 • Size • 매개변수의 크기를 설정 • Value • 매개변수의 값의 뜻 IST (Information Sciences & Technology) Laboratory

  12. 스트어드프로스저(7/8) • Parameter 개체의 속성 • Type • 데이터 타입을 설정 • DataTypeEnum IST (Information Sciences & Technology) Laboratory

  13. 스트어드프로스저(8/8) • Command 개체에서 스토어드 프로시저 사용 IST (Information Sciences & Technology) Laboratory

  14. ADO와 오류처리(1/3) • Errors 컬렉션 • DB와 연동된 ASP 코드가 실행 되는 동안 발생한 ADO 오류를 저장 • 속성 • 메소드 IST (Information Sciences & Technology) Laboratory

  15. ADO와 오류처리(2/3) • Error 개체 • 속성 IST (Information Sciences & Technology) Laboratory

  16. ADO와 오류처리(3/3) • ADO 오류관리 • Errors 컬렉션 사용 IST (Information Sciences & Technology) Laboratory

  17. 감사합니다 Yang_ka@kunsan.ac.kr 군산대학교 정보통계학과 정보과학기술 연구실 2012.01.03 양승혁 Yang_ka@kunsan.ac.kr 군산대학교 통계컴퓨터과학과 정보과학기술 연구실 2012.08.01

More Related