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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Static ADODB.Recorset In ASP

Status
Not open for further replies.

cmlimnet

Programmer
Mar 7, 2002
29
IN
Hi All,
I have a problem open a static recordset in ASP. I wonder static recordset is working in ASP or not? By default, what type of recordset is default in ASP?
My code sample is showes as below:

Set cnn = Server.CreateObject("ADODB.Connection")
cnn.Open CONSTR
Set rst = Server.CreateObject("ADODB.Recordset")
rst.Open strsql, cnn, adOpenStatic,adLockReadOnly,adCmdText

I get error message like this :
Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

However, the same piece of code is working very well in VB.
Any idea of how this problem happen?

Thank you.

Best Regards,
cmlimnet








 
This may be an error inside your SQL statement. Since the string is not evaluated until you attempt to execute it or open it (it is just a string to the ASP server, it is a command sequence to the database) than any error in it won't be caught earlier. Have you tried Response.Write'ing the SQL to see if there are any issues with it?

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Hi Tarwn
Thank you for suggestion. I think the error is because I have set some property like rs.AbsolutePage=No.

Best Regards,
cmlimnet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top