Click here to Skip to main content
15,915,164 members
Home / Discussions / Database
   

Database

 
GeneralRe: CDao MFC classes and a Access 97 DB Pin
Steve S10-Feb-04 6:27
Steve S10-Feb-04 6:27 
GeneralRe: CDao MFC classes and a Access 97 DB Pin
Phil.Benson10-Feb-04 20:27
professionalPhil.Benson10-Feb-04 20:27 
GeneralRe: CDao MFC classes and a Access 97 DB Pin
Phil.Benson11-Feb-04 1:40
professionalPhil.Benson11-Feb-04 1:40 
GeneralC++ and Database Pin
vin29-Jan-04 19:07
vin29-Jan-04 19:07 
GeneralRe: C++ and Database Pin
basementman30-Jan-04 10:30
basementman30-Jan-04 10:30 
Generalcalculate datacolumn Pin
Member 57546929-Jan-04 18:12
Member 57546929-Jan-04 18:12 
GeneralRe: calculate datacolumn Pin
-Dr_X-30-Jan-04 17:31
-Dr_X-30-Jan-04 17:31 
GeneralProblem of ADO Recordset Pin
Member 55036929-Jan-04 17:37
Member 55036929-Jan-04 17:37 
halo...everyone.l use the ado connect to the database to find out some records.And just first record display on the page but the results show in the database are over 20. and when l wrote out the record count, the answer is -1.please help me

The codes as below:
Dim objConn,objRs,strSQL

Set objConn = Server.CreateObject("ADODB.Connection")

objConn.Open "DSN=myName;Driver={Microsoft Paradox Driver (*.db)}"

Set objRs = Server.CreateObject("ADODB.Recordset")

strSQL = "Select * from (mytable) WHERE condition='" & Request.Cookies("UserID") & "'"

objRs.Open strSQL,objConn,adOpenKeySet,adLockOptimistic,adCmdText

if not objRs.EOF then
Do until objRs.EOF
Response.write.......
objRs.MoveNext
Loop
end if

Thank you at advanced!
GeneralUsing List Control with ADO Pin
girl_lash29-Jan-04 16:59
girl_lash29-Jan-04 16:59 
GeneralRetrieving autonumber when inserting data in a table Pin
Anonymous29-Jan-04 9:10
Anonymous29-Jan-04 9:10 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
Guillermo Rivero29-Jan-04 9:12
Guillermo Rivero29-Jan-04 9:12 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
Anonymous30-Jan-04 23:53
Anonymous30-Jan-04 23:53 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
-Dr_X-31-Jan-04 3:59
-Dr_X-31-Jan-04 3:59 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
Guillermo Rivero31-Jan-04 4:09
Guillermo Rivero31-Jan-04 4:09 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
Guillermo Rivero31-Jan-04 4:03
Guillermo Rivero31-Jan-04 4:03 
GeneralRe: Retrieving autonumber when inserting data in a table Pin
Anonymous31-Jan-04 10:18
Anonymous31-Jan-04 10:18 
GeneralADO Pin
monrobot1329-Jan-04 8:50
monrobot1329-Jan-04 8:50 
GeneralRe: ADO Pin
RChin30-Jan-04 4:05
RChin30-Jan-04 4:05 
GeneralRe: ADO Pin
monrobot1330-Jan-04 9:19
monrobot1330-Jan-04 9:19 
GeneralSP that support data Paging Pin
Aryo Handono29-Jan-04 3:32
professionalAryo Handono29-Jan-04 3:32 
GeneralRe: SP that support data Paging Pin
michanne29-Jan-04 4:09
michanne29-Jan-04 4:09 
GeneralRe: SP that support data Paging Pin
basementman30-Jan-04 10:36
basementman30-Jan-04 10:36 
GeneralSame code running slower second time Pin
obelisk2928-Jan-04 11:37
obelisk2928-Jan-04 11:37 
GeneralRe: Same code running slower second time Pin
Aryo Handono29-Jan-04 3:14
professionalAryo Handono29-Jan-04 3:14 
GeneralRe: Same code running slower second time Pin
obelisk2929-Jan-04 4:40
obelisk2929-Jan-04 4:40 

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.