Click here to Skip to main content
15,903,725 members
Home / Discussions / Database
   

Database

 
GeneralRe: asp ado problem. Pin
RomanD29-Dec-04 12:37
RomanD29-Dec-04 12:37 
GeneralRe: asp ado problem. Pin
Mike Dimmick30-Dec-04 3:58
Mike Dimmick30-Dec-04 3:58 
Generalsql exec Pin
SudeepPradhan28-Dec-04 13:59
SudeepPradhan28-Dec-04 13:59 
GeneralRe: sql exec Pin
Javier Lozano28-Dec-04 14:40
Javier Lozano28-Dec-04 14:40 
GeneralRe: sql exec Pin
Colin Angus Mackay28-Dec-04 14:44
Colin Angus Mackay28-Dec-04 14:44 
GeneralAdding user-defined property to Access db Pin
sharonz28-Dec-04 6:06
sharonz28-Dec-04 6:06 
GeneralADO.net in unmanaged code Pin
MARROT28-Dec-04 4:42
MARROT28-Dec-04 4:42 
GeneralSame SQL Statement in access and in vb.net return difference result Pin
Mekong River27-Dec-04 21:30
Mekong River27-Dec-04 21:30 
Hi, now I have a big trouble in vb.net and access. I have one table call tblTest with the following field:

ID        Name
N01       Kagna
N02       Bopha


When I run the following SQL statement in access query: SELECT * FROM tblTest WHERE tblTest.ID LIKE 'N*' then the result return both row. But when I run the same SQL statement from VB.NET it did not return any row. But if I run the following SQL statement SELECT * FROM tblTest WHERE tblTest.ID LIKE 'N01' from VB.NET then it return 1 result (the N01). I don't what is the problem that cause in VB.NET, I really in a difficult situation now because the result did not return as what I expected. Here is my code:

Dim cnnSearch As New ADODB.Connection
Dim rstCat As New ADODB.Recordset

With cnnSearch
			.Open(strConnection)
			.CursorLocation = ADODB.CursorLocationEnum.adUseClient
		End With

rstCat.Open("SELECT * FROM tblTest WHERE tblTest.ID LIKE 'N*'", cnnSearch, _
				ADODB.CursorTypeEnum.adOpenKeyset, _
				ADODB.LockTypeEnum.adLockOptimistic)

Note: I'm using VB.Net and connect to database using ADODB.



A thousand mile of journey, begin with the first step.

APO-CEDC
Save Children Norway-Cambodia Office

GeneralRe: Same SQL Statement in access and in vb.net return difference result Pin
WoutL28-Dec-04 0:38
WoutL28-Dec-04 0:38 
GeneralRe: Same SQL Statement in access and in vb.net return difference result Pin
Mekong River28-Dec-04 10:16
Mekong River28-Dec-04 10:16 
GeneralRe: Same SQL Statement in access and in vb.net return difference result Pin
Mekong River28-Dec-04 14:56
Mekong River28-Dec-04 14:56 
GeneralQuerying CSV file using ODBC Pin
Wayne Phipps27-Dec-04 9:12
Wayne Phipps27-Dec-04 9:12 
GeneralMS-Access insert problem Pin
Imtiaz Murtaza27-Dec-04 0:38
Imtiaz Murtaza27-Dec-04 0:38 
GeneralRe: MS-Access insert problem Pin
Rob Graham31-Dec-04 3:54
Rob Graham31-Dec-04 3:54 
Questionhow to use ADO Event with VC6.0? Pin
深蓝26-Dec-04 19:26
深蓝26-Dec-04 19:26 
GeneralCrystal Reports... Pin
dSolariuM26-Dec-04 15:41
dSolariuM26-Dec-04 15:41 
GeneralSql variable Value Problem Pin
Hemant_Mane200325-Dec-04 3:14
sussHemant_Mane200325-Dec-04 3:14 
GeneralLooping Through Table Display Category Hierarchy Pin
tech@untouchable24-Dec-04 9:35
tech@untouchable24-Dec-04 9:35 
GeneralRe: Looping Through Table Display Category Hierarchy Pin
sreejith ss nair27-Dec-04 19:05
sreejith ss nair27-Dec-04 19:05 
GeneralRe: Looping Through Table Display Category Hierarchy Pin
Anonymous28-Dec-04 5:13
Anonymous28-Dec-04 5:13 
GeneralRe: Looping Through Table Display Category Hierarchy Pin
sreejith ss nair28-Dec-04 16:07
sreejith ss nair28-Dec-04 16:07 
QuestionSqlConnection string? Pin
murali_utr24-Dec-04 2:14
murali_utr24-Dec-04 2:14 
AnswerRe: SqlConnection string? Pin
Michael P Butler24-Dec-04 3:45
Michael P Butler24-Dec-04 3:45 
AnswerRe: SqlConnection string? Pin
Colin Angus Mackay24-Dec-04 14:53
Colin Angus Mackay24-Dec-04 14:53 
GeneralRe: SqlConnection string? Pin
johan313127-Dec-04 23:06
johan313127-Dec-04 23:06 

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.