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

Express - CFQUERY -> DELETE

Status
Not open for further replies.

BowlerBob

Programmer
Jan 16, 2003
21
0
0
GB
Could I trouble you with this ? ...

Code:
...
...
<CFelseif URL.op IS "d">
    <!---Delete processing --->
    <CFquery NAME="qDelete" DATASOURCE="leancfe" >
         DELETE FROM Guestbook
         WHERE GuestBook_ID = #URL.gid# 
    </CFquery>
<CFelse>
    <!---Unknown processing operation --->
    Error, invalid processing type!
</CFif>

Error Diagnostic Information

ODBC Error Code = ()
Unsupported ODBC data source leancfe for ColdFusion Express. The data source may not exist or no driver is specified for the data source.

The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (90:2) to (90:47).

Date/Time: 12/28/08 17:04:25
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
Remote Address: 127.0.0.1
HTTP Referer: Template: c:\inetpub\Query String: op=d&gid=25
 
Is your database open on your desktop?

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
I just spotted it. You misspelled the datasource: leancfe should be learncfe

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Oh, woe is me !
Deaf as a post, and now blind as a bat !

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top