Also always a good idea to use SET NOCOUNT around multiple SQL statements to suppress informational messages... <cfquery name="yourQuery" datesource="yourDS"> SET NOCOUNT ON
UPDATE yourTable SET YourColumn = 'Something' SELECT @@ROWCOUNT AS RowsUpdated SET NOCOUNT OFF </cfquery> On 1/21/06, Adrian Lynch <[EMAIL PROTECTED]> wrote: > My name's not Bobby, but here goes: > > <cfquery name="yourQuery" datesource="yourDS"> > UPDATE yourTable > SET YourColumn = 'Something' > > SELECT @@ROWCOUNT 'RowsUpdated' > </cfquery> > > <cfoutput> > #yourQuery.RowsUpdated# > </cfoutput> > > Untested, and for SQL Server, but might be ok for Access. > > Adrian > > -----Original Message----- > From: Will Tomlinson [mailto:[EMAIL PROTECTED] > Sent: 21 January 2006 18:26 > To: CF-Talk > Subject: Re: Update, Delete, Insert recordcount? > > > >SQL can do it in a coupld of databases I think in sql server its > @@rowcount? > > Bobby, > > Could you offer an example for dave? He mostly uses Access. > > Will > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230185 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

