Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL Database cursors: Do I need to use it ?

Status
Not open for further replies.

vpekulas

Programmer
Jan 8, 2002
154
CA
Hi,
I'm just wandering if I need to use database cursors when I'm opening database ? Or can I just open the db connection in a fashion like this :

Set MyConn = Server.CreateObject("ADODB.Connection")
MyConn.open = "DSN=europeum"
SQL = "SELECT * FROM TABLE_TABLE WHERE OWNER = 1"
Set RS = MyConn.Execute(SQL)
WHILE NOT RS.EOF
NAME = trim(RS("NAME"))
DES = trim(RS("DES"))
RS.MoveNext
WEND
RS.Close
Set RS = Nothing
MyConn.Close
Set MyConn = Nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top