Results 1 to 16 of 16

Thread: ODBC driver does not support the requested properties

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    11

    ODBC driver does not support the requested properties

    Hi guys


    I'm connecting VB with mysql database using mysql connector/odbc v5 driver. While executing following error comes


    RUn-time error '-2147217887 (80040e21)': ODBC driver does not support the requested properties


    Any body known this ,reply pls

    Will mysql connector/odbc v5 driver support stored procedure


    thanks

  2. #2
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: ODBC driver does not support the requested properties

    hi,

    odbc driver 5 is beta version. it having problem. bettere use 3.51.
    wat u have write in connectionstring??

    sagar.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    11

    Re: ODBC driver does not support the requested properties

    hi sagar

    I'm using this connection string

    gConStr = "Driver={MySQL Connector/ODBC v5 Driver};SERVER=lax-7;DATABASE=deed;UID=sa;PWD=sqladcl;option=18475;"



    Will MySQL 3.51 support stored procedures with output parameters




    thanks

  4. #4
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: ODBC driver does not support the requested properties

    hi,

    I think so. I hope it will work.

    sagar.

  5. #5
    Junior Member
    Join Date
    Nov 2006
    Posts
    22

    Re: ODBC driver does not support the requested properties

    Thes Fall Code For MySql 3.51

    VB Code:
    1. Dim atch As String
    2. atch = "Provider=MSDASQL;DRIVER=MySQL ODBC 3.51 Driver;Server=localhost;database=agc;Option=16387"
    3. cn.ConnectionString = atch
    4. cn.Open
    5. Adodc1.ConnectionString = cn
    6. Adodc1.LockType = adLockOptimistic
    7. Adodc1.CursorLocation = adUseClient
    8. Adodc1.CursorType = adOpenDynamic
    9. Adodc1.CommandType = adCmdTable
    10. Adodc1.RecordSource = "agc" 'db name
    11. Adodc1.Refresh
    12.  
    13. Set DataGrid1.DataSource = Adodc1
    14.  
    15. DataGrid1.Refresh

  6. #6
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: ODBC driver does not support the requested properties

    hi,

    I know 3.51 & it working fine but any one know how to do connector/odbc v5 driver?? problem wid recordset.

  7. #7
    New Member
    Join Date
    Dec 2006
    Posts
    3

    Re: ODBC driver does not support the requested properties

    Dim MyConString As String = "Driver={MySQL ODBC 3.51 Driver};Server=localhost;Port=3306;Database=test;User=root;Password=1234;Option=3;"
    Dim MyConnection As New OdbcConnection(MyConString)

  8. #8

  9. #9
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: ODBC driver does not support the requested properties

    hay rhino this is not .net concept. this is just connection to mysql by odbc driver...we r using vb classic

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: ODBC driver does not support the requested properties

    OdbcConnection and Dim MyConString As String = "Driver={MySQL ODBC 3.51 Driver};...
    are vb.net objects and syntax.
    You can not declare a string variable and set it equal to a value on the same line in VB 6, only in .NET

    Perhaps thats why you are getting errors if you are using it in VB 6.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  11. #11
    New Member
    Join Date
    Oct 2009
    Posts
    2

    Re: ODBC driver does not support the requested properties

    hello
    i'm new in this forum and also get same problem
    when i debug it show the error in this syntax


    Set rsGrid = New ADODB.Recordset
    rsGrid.Open "select datatemp.no as [NO],datatemp.pn as [PART NUMBER]," _
    & "datatemp.nb as [DESCRIPTION],datatemp.jum as [QTY]," _
    & " datatemp.harsat as [PRICE] from datatemp", conn, adOpenDynamic, adLockOptimistic

    i'm using MYSQL v5 and odbc driver v3.51

    does any one have the clue??

  12. #12
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: ODBC driver does not support the requested properties

    there may b prob in query...
    print ur query at runtime and check the same....
    try below query
    ----
    rsGrid.Open "select datatemp.no as [NO],datatemp.pn as [PART NUMBER]," & _
    & "datatemp.nb as [DESCRIPTION],datatemp.jum as [QTY]," & _
    & " datatemp.harsat as [PRICE] from datatemp", conn, adOpenDynamic, adLockOptimistic
    -----
    Sagar
    VB6, VB.net,C#,ASP, ASP.net MSSQL, MYSQL

  13. #13
    New Member
    Join Date
    Oct 2009
    Posts
    2

    Re: ODBC driver does not support the requested properties

    thx sagar for the reply
    i already found solution for the previously problem

    but i find another error that really make me confuse


    when i debug it also refer to this syntax
    rsGrid.Open "select datatemp.no as [NO],datatemp.pn as [PART NUMBER]," _
    & "datatemp.nb as [DESCRIPTION],datatemp.jum as [QTY]," _
    & " datatemp.harsat as [HARGA] from datatemp", conn, adOpenDynamic, adLockOptimistic

    i can fix it by using this syntax
    rsGrid.Open "select * from datatemp", conn, adOpenDynamic, adLockOptimistic

    but the problem is i cant change the column title like i want

    is it because the ODBC Driver doesnt support or what??

  14. #14
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: ODBC driver does not support the requested properties

    no this is not because of ODBC....
    try this
    ----
    rsGrid.Open "select datatemp.no [NO],datatemp.pn [PART NUMBER]," & _
    & "datatemp.nb [DESCRIPTION],datatemp.jum [QTY]," & _
    & " datatemp.harsat [PRICE] from datatemp", conn, adOpenDynamic, adLockOptimistic
    ----------
    Sagar
    VB6, VB.net,C#,ASP, ASP.net MSSQL, MYSQL

  15. #15
    New Member
    Join Date
    Feb 2011
    Posts
    7

    Re: ODBC driver does not support the requested properties

    HI.

    i got the same problem too and i already changed it MySQL ODBC 3.51 Driver. the error occurred at the bold codes.

    TQ


    conn.ConnectionString = "uid=studentuser;pwd=123;server=studenthost;driver={MySQL ODBC 3.51 Driver};database=student;dsn=STUDENT;"
    conn.Open
    Set rs1 = New ADODB.Recordset
    'rs1.Open Source2, Connect, 3, 3, 1

    conn.Execute "DROP TABLE IF EXISTS daftaryuranasrama", , adExecuteNoRecords

    Set rs1 = New ADODB.Recordset

    rs1.Open "select * from daftaryuranasrama", conn, adOpenStatic, adLockReadOnly

    result = CreateFieldDefFile(rs1, App.Path & "\report\report.ttx", True)

  16. #16
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    Re: ODBC driver does not support the requested properties

    rs1.Open "select * from daftaryuranasrama", conn, adOpenDynamic, adLockOptimistic
    try this
    Sagar
    VB6, VB.net,C#,ASP, ASP.net MSSQL, MYSQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width