Click here to Skip to main content
15,910,872 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi
i need to get a query that update some parametrs and get the result in asp.net 4 visual studio 2010

SQL
UPDATE       message
SET                is_read = 1
WHERE        (is_read = 0)
OUTPUT      mess


this is the query but visual studio show error!!!
Posted
Comments
Mehdi Gholam 24-Sep-11 11:21am    
What is your error?
sachin10d 24-Sep-11 11:36am    
Post the Error details please

1 solution

Always say what error you recieve never ever say "visual studio show error"

You're using the OUTPUT clause wrongly see OUTPUT Clause (Transact-SQL)[^] and UPDATE (Transact-SQL)[^] there are even examples of how to use it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900