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 |
taunt
Posting Yak Master
128 Posts |
Posted - 2014-05-23 : 14:12:26
|
Hello I'm runnnf this query:DELETE FROM SFdataFROM Items WHERE (Items.UseUpdate = '0') What I'm trying to do is display a count of the rows deleted by that query. I'vd tried select count(*) with the above, but it errors out. How can I have is display the deleted rows as delcount?Thanks |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-05-23 : 14:19:54
|
DELETE FROM SFdataFROM Items WHERE (Items.UseUpdate = '0')SELECT @@ROWCOUNT AS delcountTara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
|
|
|