Click here to Skip to main content
15,892,161 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: The best way to handle a VERY Large array of strings Pin
Dave Kreskowiak28-Sep-13 18:04
mveDave Kreskowiak28-Sep-13 18:04 
AnswerRe: The best way to handle a VERY Large array of strings Pin
Abhinav S28-Sep-13 20:11
Abhinav S28-Sep-13 20:11 
AnswerRe: The best way to handle a VERY Large array of strings Pin
David Mujica30-Sep-13 3:17
David Mujica30-Sep-13 3:17 
AnswerRe: The best way to handle a VERY Large array of strings Pin
Kryptex7-Oct-13 4:02
Kryptex7-Oct-13 4:02 
QuestionPopulate Data form MySQL Database Table in Datagridview by Datagridview autocomplete Textbox cell Pin
Biplob Singha Shee26-Sep-13 21:37
Biplob Singha Shee26-Sep-13 21:37 
GeneralRe: Populate Data form MySQL Database Table in Datagridview by Datagridview autocomplete Textbox cell Pin
Biplob Singha Shee27-Sep-13 19:24
Biplob Singha Shee27-Sep-13 19:24 
GeneralRe: Populate Data form MySQL Database Table in Datagridview by Datagridview autocomplete Textbox cell Pin
Richard MacCutchan27-Sep-13 21:23
mveRichard MacCutchan27-Sep-13 21:23 
GeneralADODB recordset not returning case-sensitive results Pin
Member 1026522824-Sep-13 9:07
Member 1026522824-Sep-13 9:07 
I have an application using an ADODB connection to a DBase database (simple and easy to distribute). I captured the SQL string sent to the connection object using Quickwatch. I pasted the SQL statement into an SQL tool. I executed the SQL and it returned no rows which is correct. However when the same SQL string is passed to the ADODB connection it returns 189 rows.

Here is the code the initializes the ADODB connection:

VB
' Define DBase connection
strConn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\DataStore;Extended Properties=DBASE III"
ConnDBF = New ADODB.Connection

' Open DBase database connection
ConnDBF.Open(strConn)
OK = ConnDBF.State

' Initialize recordset
rstGRK = New ADODB.Recordset
rstGRK.CursorType = ADODB.CursorTypeEnum.adOpenStatic



Here is the SQL string being passed:

VB
' Get result set
rstGRK.Open(SQLString, ConnDBF)

' Get number of hits
ResultCnt = rstGRK.RecordCount



Here is the SQL string:

XML
<pre>SELECT BKL.BkShtName,
       SRC.BookNo,
       SRC.ChapNo,
       SRC.VerseNo,
       SRC.VerseText1,
       SRC.VerseText2
FROM BIENBVS SRC,
     BIBKLST BKL
WHERE SRC.BookNo = BKL.BookNumber
      AND (SRC.VerseText1 LIKE '%frank jones%'
           OR SRC.VerseText2 LIKE '%frank jones%' )
ORDER BY 2, 3, 4</pre>


The correct results is NO ROWS because the names begin with upper case. The ADODB connection returns 189 rows which is incorrect.

Does anybody have any ideas what could be going on and how to force the connection to be case sensitive?
GeneralRe: ADODB recordset not returning case-sensitive results Pin
Dave Kreskowiak24-Sep-13 12:12
mveDave Kreskowiak24-Sep-13 12:12 
GeneralRe: ADODB recordset not returning case-sensitive results Pin
Member 1026522825-Sep-13 5:33
Member 1026522825-Sep-13 5:33 
GeneralRe: ADODB recordset not returning case-sensitive results Pin
Dave Kreskowiak25-Sep-13 7:57
mveDave Kreskowiak25-Sep-13 7:57 
GeneralRe: ADODB recordset not returning case-sensitive results Pin
TnTinMn25-Sep-13 13:34
TnTinMn25-Sep-13 13:34 
GeneralRe: ADODB recordset not returning case-sensitive results Pin
Member 1026522826-Sep-13 4:51
Member 1026522826-Sep-13 4:51 
GeneralRe: ADODB recordset not returning case-sensitive results Pin
Member 1026522826-Sep-13 6:07
Member 1026522826-Sep-13 6:07 
QuestionSelect Audio Track Pin
Andre.Adrian23-Sep-13 0:32
professionalAndre.Adrian23-Sep-13 0:32 
AnswerRe: Select Audio Track Pin
Dave Kreskowiak23-Sep-13 1:23
mveDave Kreskowiak23-Sep-13 1:23 
GeneralRe: Select Audio Track Pin
Brisingr Aerowing24-Sep-13 11:39
professionalBrisingr Aerowing24-Sep-13 11:39 
GeneralRe: Select Audio Track Pin
Dave Kreskowiak24-Sep-13 12:05
mveDave Kreskowiak24-Sep-13 12:05 
JokeRe: Select Audio Track Pin
Brisingr Aerowing24-Sep-13 14:23
professionalBrisingr Aerowing24-Sep-13 14:23 
GeneralRe: Select Audio Track Pin
Dave Kreskowiak24-Sep-13 15:45
mveDave Kreskowiak24-Sep-13 15:45 
GeneralRe: Select Audio Track Pin
Andre.Adrian25-Sep-13 23:42
professionalAndre.Adrian25-Sep-13 23:42 
QuestionCurrency Round Off Pin
Biplob Singha Shee22-Sep-13 4:09
Biplob Singha Shee22-Sep-13 4:09 
AnswerRe: Currency Round Off Pin
Richard MacCutchan22-Sep-13 4:55
mveRichard MacCutchan22-Sep-13 4:55 
GeneralRe: Currency Round Off Pin
Biplob Singha Shee22-Sep-13 6:00
Biplob Singha Shee22-Sep-13 6:00 
GeneralRe: Currency Round Off Pin
Richard MacCutchan22-Sep-13 7:01
mveRichard MacCutchan22-Sep-13 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.