SSMS: easy way to update table after a select?

  • Hi forumfolks, I have a probably stupid question but it is a way of working that annoys me.

    It's about SSMS, you do a select on a table and then later on you want to do an update in the table.

    The way it seems to work now is that you select edit top 200, then edit the sql statement (with a where clause), then you can start updating. Which sounds a but cumbersome to me.

    If I compare it with enterprise server, there you can edit the query immediately and it was much easier.

    Am I doing something wrong or missing something that is obvious?

    Thanks for taking the time to respond.

    Vera

  • What about just using the query window and typing 'UPDATE dbo.MyTable SET ColumnA = 42 WHERE ColumnB = 42'?

    The gui in SSMS can support what you're doing, but it's a pretty poor substitute for just using straight TSQL.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

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

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