Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 10th, 2005, 12:55 PM
Authorized User
Join Date: Jun 2003
Location: Jewett City, CT, USA.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't insert into database

I'm having trouble figuring out what is wrong with my query. I have the following code:
    dim objConn, rsStudents, strSql
    Set objConn = Server.CreateObject("ADODB.Connection")
    objConn.Mode = adModeReadWrite
    objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\IMI\StudentData.mdb;"


    strSql = "INSERT INTO Students (FirstName, LastName, SSN) VALUES ('" & fName & "','" & lName & "','" & ssn & "')"

However, when I try to view the ASP page, I get an "Operation must use an updateable query." error on the Execute line. What does this mean and what do I need to do to fix it?


  #2 (permalink)  
Old June 15th, 2005, 04:07 AM
Friend of Wrox
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel

Did you check this :: http://support.microsoft.com/kb/q175168

Best Regards


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to insert a value into database? amit_mande@yahoo.com VB.NET 13 September 21st, 2006 10:38 AM
How to insert a value into database? amit_mande@yahoo.com VB.NET 1 September 12th, 2006 01:35 PM
Insert a record into a Database ersp Classic ASP Basics 3 May 9th, 2004 08:50 PM
How to insert new redord into a Database? ersp ASP.NET 1.x and 2.0 Application Design 1 May 9th, 2004 12:59 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.