Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP and SQL Server Recordset

Reply
Thread Tools

ASP and SQL Server Recordset

 
 
Aaron Bertrand - MVP
Guest
Posts: n/a
 
      01-21-2004
DON'T MULTI-POST.


 
Reply With Quote
 
 
 
 
Erik
Guest
Posts: n/a
 
      01-21-2004
I'm using ASP 3.0 and SQL Server 2000. I keep getting this error:

a.. Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
/databaseconect.asp, line 22

It seems to have to do with the lock or cursor type in SQL Server. Here is
my code. Please help

<%@ Language=VBScript %>
<%
strText = Request.Form("textfield")
Dim objconn1 'Connection Object
Dim strconn1

Set objConn1 = Server.CreateObject("ADODB.Connection")
strconn1 = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=Northwind;Data Source=SERVER\SERVER"
objconn1.Open strconn1

''Recordset Info
Set rs1 = Server.CreateObject("ADODB.Recordset")

rs1.Open "SELECT customername FROM Customer", objconn1, adOpenDynamic,
adLockOptimistic, adCmdText
rs1.AddNew
rs1.Fields("textfield") = strText
rs1.Update
%>



 
Reply With Quote
 
 
 
 
Tom Kaminski [MVP]
Guest
Posts: n/a
 
      01-21-2004
"Erik" <> wrote in message
news:...
> I'm using ASP 3.0 and SQL Server 2000. I keep getting this error:
>
> a.. Error Type:
> ADODB.Recordset (0x800A0BB9)


http://www.aspfaq.com/show.asp?id=2102
http://www.aspfaq.com/show.asp?id=2364

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserv...y/centers/iis/



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems accessing data from recordset (SQL Server 2000) CrazyAtlantaGuy ASP General 2 11-30-2005 03:54 PM
ASP recordset retrieval problem (SQL Server) AlanMF ASP General 6 11-15-2005 08:12 PM
How to read an SQL Server into a ASP page and then change, add, delete and write it back to SQL Server Belinda ASP General 4 06-11-2004 12:16 PM
Problem accessing individual recordset fields in a Sql Server 7 view via ASP Darren Smith ASP General 2 01-28-2004 08:29 PM
RecordSet.Move or RecordSet.AbsolutePosition?? Hung Huynh ASP General 8 09-24-2003 11:07 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57