Click here to Skip to main content
16,016,022 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have a table in SQL Server 2008. In the table there is no primary key. I can not delete any row in database. Please give me a solution.But when I run the following query then the rows delete "DELETE TransactionInformation". Advance thanks for helping me.
Posted
Updated 14-Jun-14 22:11pm
v2
Comments
Kornfeld Eliyahu Peter 15-Jun-14 4:10am    
Please give us the error you have while deleting row...

1 solution

incorrect delete statement syntax[^], you need FROM like below.
SQL
DELETE  FROM yourtable

above will delete all the rows
SQL
DELETE FROM yourtable Where column = 'someValue'

above will deleted the rows which match the condition
 
Share this answer
 
v2

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