Solved

SQL Server Update records

Posted on 2013-05-19
4
465 Views
Last Modified: 2013-05-19
I am working with SQL Server 2000 (connecting with SSMS 2008).
In SSMS if I click on Open Table (or Open x # of Records) I can then edit the records that are displayed.  If I run a Select Query and then view the results set.  Is there a method where I can have the results displayed in edit mode?  I want to be able to edit the records manually that are returned from a select statement without having to do this with an update query.   I have no issue doing this with an update query, but someone else was asking me if their is a way to do this.  Thanks.
0
Comment
Question by:fjkaykr11
  • 2
4 Comments
 
LVL 40

Expert Comment

by:Sharath
ID: 39179547
No way in SSMS. You need to write UPDATE statement for your SELECT statement. Or you have to update the records the way you are updating from the right click menu option.
0
 
LVL 3

Author Comment

by:fjkaykr11
ID: 39179600
thanks for the info. I didn't think there was a way to do this I just was just checking.
0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
ID: 39179659
Yes, it is possible. When you right click and select Open Table, the Show SQL Pane option is available as one of the icons. If you edit the SQL to the SELECT statement you want, the results are still editable (I have only ever tried with simple filters). Works on my SQL Server 2005 and 2012 standard SSMS.
0
 
LVL 3

Author Closing Comment

by:fjkaykr11
ID: 39179768
Thanks for the info.  I think that is what I need.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now