|
-
Nov 7th, 2006, 02:03 AM
#1
Thread Starter
New Member
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
-
Nov 7th, 2006, 02:28 AM
#2
Hyperactive Member
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.
-
Nov 7th, 2006, 03:27 AM
#3
Thread Starter
New Member
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
-
Nov 7th, 2006, 03:34 AM
#4
Hyperactive Member
Re: ODBC driver does not support the requested properties
hi,
I think so. I hope it will work.
sagar.
-
Nov 7th, 2006, 09:00 AM
#5
Junior Member
Re: ODBC driver does not support the requested properties
Thes Fall Code For MySql 3.51
VB Code:
Dim atch As String
atch = "Provider=MSDASQL;DRIVER=MySQL ODBC 3.51 Driver;Server=localhost;database=agc;Option=16387"
cn.ConnectionString = atch
cn.Open
Adodc1.ConnectionString = cn
Adodc1.LockType = adLockOptimistic
Adodc1.CursorLocation = adUseClient
Adodc1.CursorType = adOpenDynamic
Adodc1.CommandType = adCmdTable
Adodc1.RecordSource = "agc" 'db name
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
DataGrid1.Refresh
-
Nov 7th, 2006, 11:47 AM
#6
Hyperactive Member
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.
-
Dec 10th, 2006, 10:10 AM
#7
New Member
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)
-
Dec 10th, 2006, 10:41 AM
#8
Re: ODBC driver does not support the requested properties
@abble:
this is NOT VB.Net - this is VB.Classic (VB6 and prior) forum so please pay attention to what and where you post.
-
Dec 11th, 2006, 10:52 PM
#9
Hyperactive Member
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
-
Dec 11th, 2006, 11:12 PM
#10
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Oct 26th, 2009, 04:56 AM
#11
New Member
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??
-
Oct 28th, 2009, 02:55 AM
#12
Hyperactive Member
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
-
Oct 28th, 2009, 03:49 AM
#13
New Member
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??
-
Oct 30th, 2009, 04:25 AM
#14
Hyperactive Member
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
-
Feb 28th, 2011, 10:24 PM
#15
New Member
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)
-
Mar 1st, 2011, 06:41 AM
#16
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|