Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Quick SQL Delete statement question

$
0
0
Hi - can any one see whats wrong with my delete statement?

Dim cs As New SqlConnection("myconnectionstringinhere")
cs.Open()
Dim cmd As New SqlCommand("DELETE * FROM tblRep", cs)
cmd.ExecuteNonQuery()



Error message: Incorrect syntax near '*'.

Thanks!

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>