|
-
Jan 10th, 2001, 06:55 PM
#1
Thread Starter
Addicted Member
Why can't I use the sort property with ado recordsets in asp scripts? When I try, I get the following message:
ADODB.Recordset error '800a0cb3'
The operation requested by the application is not supported by the provider.
/historyresponse.asp, line 30
Why is this?
-
Jan 10th, 2001, 11:03 PM
#2
Guru
before you open your recordset, set the cursorlocation to adUseClient
example
Code:
dim objRS
const adUseClient = 3
set objRS = server.createobject("ADODB.Recordset")
objRs.CursorLocation = adUseClient
objRs.Open "Select * from MyTable", "<connectionStringHere>"
objRs.sort "myColumn"
'etc etc.....
Please note that this code is not entirely syntactically correct, as I whipped it off of the top of my head, but it should prove the point
Tom
-
Jan 12th, 2001, 08:29 AM
#3
Thread Starter
Addicted Member
Thanks Clunietp. It worked great.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|