Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Windows Connector Problems? Or Poor Knowledge? (no replies)

$
0
0
Hi there can anybody advise.
This is not the first time I've hit a barrier when code that works great with Access or Dare I say the bad word "M* SQL" does not work when working with MySQL.

Just spent a few hours trying every cursor type under the sun and all I got in return from count=Recordset.RecordCount was -1 In the end I change tack completely and used the following code.
cntsql = "SELECT COUNT(picID) AS rc FROM gal_pic WHERE albID = " & cInt(albID) & ";"
Set con = Server.CreateObject("ADODB.Connection")
con.Open(ConnectionString)
Set rs = con.Execute(cntsql)
If Not rs.EOF Then
imgs = cInt(rs("rc"))
End If
Set rs = Nothing
con.Close
Set con = Nothing

Which worked first time, I'll assume that MySQL does not support .RecordCount?

On a previous project a complex statistical query was throwing up errors all over the place. MySQL is provided Free by my host.
After a week of trying to debug this query I purchased the M****Soft equivalent and had everything working within 4 Hours.

Are these common problems when working cross platform from a windows based server to the linux based MySql server, or is it just I have to learn the differences?
Your advice would be much appreciated.

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>