Advertisement

05.16.2008 at 08:01AM PDT, ID: 23408530
[x]
Attachment Details

Insert into SQL Database with ASP

Asked by trhitc in Active Server Pages (ASP), MS SQL Server

Tags: ASP, SQL Server 2000, Either BOF or EOF is True, or the current record has been deleted.

Hi, I am very new to ASP and a lot more comfortable with PHP so ASP is seeming rather alien to me!

I'm trying to insert one piece of data into an SQL Server 2000 database.

Can anyone see anything wrong with the code I'm using? Wondering if I maybe haven't got the right permissions with my access to the database. Everytime I try and enter new records through SQL Admin Studio it tells me I'm using an 'Invalid object name 'tiles''. Quite bemusing because there is no mention of the name 'tiles' in any attributes/entities/table names, its not even the name of the database however, the database holds data relating to tiles.

I have tried adding data to the database through ASP and I get the attached error. Being new to ASP I do not know what BOF or EOF (End of file?) are.

Any help much appreciated.

Thanks,
AlastairStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
<%
dim choice
 
choice = Request("choice")
strSQL = "insert into managerchoice values('" & choice & "')"
set rs=Server.CreateObject("ADODB.Recordset")
 
 %>
[+][-]05.16.2008 at 08:46AM PDT, ID: 21583785

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 04:26AM PDT, ID: 21596685

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.19.2008 at 04:27AM PDT, ID: 21596693

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), MS SQL Server
Tags: ASP, SQL Server 2000, Either BOF or EOF is True, or the current record has been deleted.
Sign Up Now!
Solution Provided By: mrdany
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628