How to Delete Multiple ID

  • Hi Experts,

    How can i accomplish to delete a selected ID's using T-SQL.

    I have use this query DELETE FROM `table` WHERE id IN (264, 265).

    But if my parameters are selected, means it can be two or three based on the selected number rows by a user.

    How can u implement above query.

    Thanks.

  • jaquino012 (9/2/2015)


    Hi Experts,

    How can i accomplish to delete a selected ID's using T-SQL.

    I have use this query DELETE FROM `table` WHERE id IN (264, 265).

    But if my parameters are selected, means it can be two or three based on the selected number rows by a user.

    How can u implement above query.

    Thanks.

    How is the user performing the selection? Which client software are they using? What does the Id recordset look like? Comma-delimited string? For example '264,265'

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.

  • Hi,

    Thank you for you reply..

    Vb.net and datagridview control.

    The user will select a row by check box

    Interger

    Thanks

    Thanks

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply