Ask a Question related to Coldfusion Database Access, Design and Development.
-
theAgencyMan #1
retreve number of records updated
is there a variable that can be accessed from a query that tells the number of records updated?
Thanks
KES
theAgencyMan Guest
-
GridView reload for the updated records.
Hi Is there any way that I can call a vb function from Javascript ......... Scenario I have a search which shows output in a gridview. I have... -
Total number of records
When I do a query, how do I get a total number of records found to appear at the bottom of the screen? Thanks -
Display x number of records
How could I display *only* x# of records even if the select statement returns a value >x? -
Illustrator CS Serial Number Issues -- Adobe response - Updated!
We waited 2 weeks for them to respond back at my office before having no one call us back or email us as promised. Every phonecall created no... -
number of records
hello sir, thank u for help in advance i want to know as to how i can get the number of records obtained in the result of a select query ,the... -
TurboMini #2
Re: retreve number of records updated
the query won't report back
you can keep track on your end, but you will only know how many you EXPECTED
to update, not how many you actually updated
if you trap the update statement(s) for errors, and do them one at a time
while keeping a counter, then you can keep track
otherwise, you could do a stored procedure that keeps count of the updated
records and returns a total
TurboMini Guest
-
Sojovi #3
Re: retreve number of records updated
In SQL server you have the variable @@ROWCOUNT, that returns the number of rows
affected by the last SQL instruction. If you are running other DB, surely
there's a variable for that purpose.
UPDATE table SET column = value
WHERE column = value1
IF @@ROWCOUNT = 0
print 'Warning: No rows were updated'
ELSE
print str(@@ROWCOUNT)
REgards
Sojovi Guest
-
Dan Bracuk #4
Re: retreve number of records updated
Run a select count(something) before your update. As long as the where clauses are the same, you will get your answer.
Dan Bracuk Guest
-
theAgencyMan #5
Re: retreve number of records updated
THanks , that's what i was looking for
theAgencyMan Guest



Reply With Quote

