Background Image

FORUM

조회 수 17377 추천 수 0 댓글 1
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
이전에도 질문을 남겼었는데요..

아래와같이 DB연결을 하고 실행을 할때
ODBC(위에서 설정값) 으로 하게 되면 별 문제가 없는데
OLEDDB(아래 설정값. 주석처리된 거) 으로 하게 되면
    " 데이터 공급자나 기타 서비스가 E_FAIL 상태를 반환했습니다 "
    라는 에러가 발생을 합니다.
    답변해주신 대로 아래와 같이 설정을 했습니다.
           .CursorLocation = adUseClient
    또한 이상한 점이 OLEDB로 연결을 했을 때 Set rs = aAdoCn.Execute(strSQL) 이런식으로  실행을 하면 한번은 되는데 두번째는 안되더라구요.
    http://www.cubrid.com/zbxe/32217 이 글이랑 연관이 있는게 아닌가 하는생각도 드네요..

읽어주셔서 감사합니다.
   
DBConnect = False
    Set aAdoCn = New ADODB.Connection
    With aAdoCn
        Select Case aDbType        
            Case "CUBRID"
                            .ConnectionString = "driver={CUBRID Driver};" & _
                                                      "server=" & aIp & ";" & _
                                                      "port=33000;" & _
                                                      "uid=" & aUseID & ";" & _
                                                      "pwd=" & aPassword & ";" & _
                                                      "db_name=" & aDataSource & ";"
'                .ConnectionString = "Provider = CUBRIDProvider;" & _
'                                    "Data Source = " & aDataSource & ";" & _
'                                    "Location = " & aIp & ";" & _
'                                    "User ID = " & aUseID & ";" & _
'                                    "Password = " & aPassword & ";" & _
'                                    "Port = 30000;" & _
'                                    "Fetch Size = 100"
            Case Else
                DBConnect = False
                Exit Function
        End Select
   
        .CursorLocation = adUseClient
        .ConnectionTimeout = 30
        .Open
   
    End With
   
    DBConnect = True
    Exit Function

  1. CUBRID 사용자를 위한 DBeaver 도구 출시 안내

    Date2024.04.23 Byadmin Views50
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4458
    read more
  3. 프로세스 정상동작 문의 드립니다.

    Date2009.01.23 By윤희서 Views33635
    Read More
  4. 우분투에서 php + 큐브리드를 설치하고 있습니다.

    Date2009.01.25 By희야 Views21335
    Read More
  5. 우분투서버에서 php모듈 설치때

    Date2009.01.28 ByNoisyWalker Views14214
    Read More
  6. 혹시 MMDB 지원하나요?

    Date2009.01.31 Bytekkal Views17480
    Read More
  7. Clob Type.

    Date2009.01.31 Bytekkal Views18586
    Read More
  8. PHP 에서 cubrid_connect 실패.

    Date2009.02.03 By별의목소리 Views14381
    Read More
  9. solaris와 hp-unix 지원 관련

    Date2009.02.03 Bytekkal Views16023
    Read More
  10. C/C++ 지원하는 Connection Pool API 는 없나요?

    Date2009.02.03 Bytekkal Views21009
    Read More
  11. DWMAPI.dll 관련 오류

    Date2009.02.04 ByGGG특별대원 Views33285
    Read More
  12. OLEDB insert관련 질문입니다.

    Date2009.02.05 Bygarfield39 Views16334
    Read More
  13. cubrid manager에서 DB 권한

    Date2009.02.07 By2~40자? 2~40byte? Views13883
    Read More
  14. [replication] 성능에 대한 질문입니다.

    Date2009.02.10 Bykkckc Views16669
    Read More
  15. [질문]큐브리드 설치관련입니다.

    Date2009.02.12 By야매코더 Views13516
    Read More
  16. cubrid 2008 windows버전에서의 CUBRID_Service_Tray 실행오류

    Date2009.02.12 By마비토 Views14156
    Read More
  17. 프로그램 개발 후 배포 관련

    Date2009.02.12 By늘푸른거북이 Views25365
    Read More
  18. OLEDB 연결 시 에러 발생

    Date2009.02.12 By늘푸른거북이 Views22252
    Read More
  19. 큐브리드 메니져로 쿼리 결과 조회시

    Date2009.02.13 ByApiClasser Views13544
    Read More
  20. VB ADO 사용 관련 문의를 드립니다.

    Date2009.02.13 By늘푸른거북이 Views17377
    Read More
  21. [질문]재설치 실패...

    Date2009.02.13 By야매코더 Views12779
    Read More
  22. 큐브리드 메니져로 쿼리 결과 조회시#2

    Date2009.02.14 ByApiClasser Views12852
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 200 Next
/ 200

Contact Cubrid

대표전화 070-4077-2110 / 기술문의 070-4077-2113 / 영업문의 070-4077-2112 / Email. contact_at_cubrid.com
Contact Sales