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 Views51
    read more
  2. SQLGate for CUBRID 영구 무료 라이선스 제공

    Date2020.04.09 Byadmin Views4458
    read more
  3. Windows 7 64bit에서 ODBC Driver가 등록되지 않습니다.

    Date2011.03.29 By일수니 Views24300
    Read More
  4. Windows 7 64bit 에서 cubrid 설치 되나요?

    Date2009.06.17 By예수 Views14733
    Read More
  5. Windows 2008 서버 backupdb 오류 문의

    Date2010.11.25 By김소영 Views7853
    Read More
  6. Windows 10 에서 CUBRIDManager-10.1.0.0005-windows-x64와 CUBRID-Windows-x64-10.1-latest 설치후 매니저 실행하고 연결이름을 test 입력시 연결오류발생

    Date2019.01.03 Bysimon Views356
    Read More
  7. Windows 10 php 5.6 Call to undefined function cubrid_connect() 에러 문의

    Date2022.04.21 Bydevlsy Views123
    Read More
  8. Window Crubrid 설치 후 uninstall시에 트레이 아이콘을 명령어로 종료시킬 수 있는 방법이 있나요?

    Date2011.03.22 By혀니짱 Views11534
    Read More
  9. WinNGS 통해서 CM 관리모드 사용할때 8001포트 사용하고 있습니다.

    Date2020.12.24 ByPhilip Park Views1593
    Read More
  10. Win7에서 Query Browser 실행 안됩니다. 도움 요청 드립니다.

    Date2013.08.28 Byjemcarry Views8017
    Read More
  11. Warning: Error: CAS, -1003, Cannot receive data from client 에러 발생

    Date2012.03.23 BygPdnjs Views9259
    Read More
  12. Warning: Error: CAS, -10012, Invalid cursor position in ~

    Date2015.04.08 By완초 Views6365
    Read More
  13. WHERE절에 REGEXP_REPLACE를 넣고 실행하면 다운됩니다.

    Date2023.01.02 By거지같은 Views318
    Read More
  14. VisualSQL과 같은 도구를 만들고 있습니다.

    Date2009.04.17 By서명호 Views13070
    Read More
  15. VisualSQL과 같은 도구를 만들고 있습니다.

    Date2009.04.06 By서명호 Views12525
    Read More
  16. Visual Studio 2010과 Cubrid ole db provider연동 문제

    Date2012.07.08 By안드레세상 Views19806
    Read More
  17. Visual Stdio 2008 OLE_DB 사용하여 TEST 중.... 문제 발생...

    Date2010.05.07 ByG행운아 Views12803
    Read More
  18. Visual Basic 관련 문의

    Date2009.06.19 By방랑아 Views10206
    Read More
  19. VPN망안에서의 PC에 CUBRID설치

    Date2010.07.07 By까망이 Views10775
    Read More
  20. VPN 연결된 컴퓨터에는 큐브리드메니져가 실행이 안되나요?

    Date2010.06.16 By까망이 Views9094
    Read More
  21. VIEW 생성 - SUM(DECODE(...))함수 사용에 대한 문의

    Date2013.10.30 Bykst Views20739
    Read More
  22. VIEW SELECT 오류 (실행오류: -494)

    Date2021.06.11 Bytenbirds Views460
    Read More
Board Pagination Prev 1 ... 141 142 143 144 145 146 147 148 149 150 ... 200 Next
/ 200

Contact Cubrid

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