Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Liam Digman 22.Jan.10 03:27 PM a Web browser
Applications Development 7.0.2 All Platforms


I have been struggling to retrieve data from a mySQL datasource. I know the data is there (verified via query browser) but I never return any data with my query. I have written this stuff many times, but for some reason, I can't get this to work.
I am connecting to the datasource OK, I return -1 rows and the data in my field is 'False'. I have scoured the boards and tried all kinds of things, including having my DBA set up a linked server to SQL Server 2008, but with the same result.

Thoughts?

Thanks!

The code:
Option Public
Option Declare
Uselsx "*LSXODBC"


Dim session As NotesSession
Dim con As New ODBCConnection
Dim qry As New ODBCQuery
Dim result As New ODBCResultSet


Set qry.Connection = con
Set result.Query = qry
con.SilentMode = True
Call con.ConnectTo(DATASOURCE, USERNAME, PASSWORD)
result.CacheLimit = 6000
result.FetchBatchSize = 5000

qry.SQL = "select title, description from wmoodle.mdl_aard_comp_job"

Call result.Execute

If result.IsResultSetAvailable Then
Do
intCount = intCount + 1
result.NextRow
strTitle = result.GetValue(1)
Loop Until result.IsEndOfData
End If






LSXODBC Issue (Liam Digman 22.Jan.10)
. . RE: LSXODBC Issue (Melissa L Snell... 27.Jan.10)
. . . . RE: LSXODBC Issue (Liam Digman 27.Jan.10)
. . . . . . RE: LSXODBC Issue (Melissa L Snell... 28.Jan.10)
. . . . . . . . RE: LSXODBC Issue (Liam Digman 29.Jan.10)
. . RE: LSXODBC Issue (Liam Digman 5.Feb.10)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM Web Content Manager
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite