Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sechrist
Starting Member
1 Post |
Posted - 2007-08-04 : 22:58:59
|
| Hi there,When inserting a new record I want to assign the next property_id from the property.property_id table. The query: <cfquery name="GetNewID" datasource="#application.DSN_Name#"> SELECT top 1 property_idFROM propertyORDER BY property_id desc </cfquery>When I test it works swell.However the error appears on the following line of code:<cflocation url="add_property_confirm.cfm?property_id=#GetNewID.property_id#">The error states that property_id is not defined in GetNewID.The property_id table is set for auto number and ident and using SQL 2000.I have no clue where to start to troubleshoot this - as an interesting quirk this code was working for years, the client pulled the site down, then we reinstated it - nothing changed in the database or the code....a mystery to me.Thanks in advance,Kathy |
|
|
DonAtWork
Master Smack Fu Yak Hacker
2167 Posts |
Posted - 2007-08-06 : 07:07:45
|
| You might want to find a Cold Fusion site. This forum is for Microsoft SQL Server.[Signature]For fast help, follow this link:http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspxLearn SQLhttp://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.asp |
 |
|
|
|
|
|