Solved

SQL Server Update records

Posted on 2013-05-19
4
467 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert formula to max at a specific date by month 18 20
convert null in sql server 12 34
VB.net and sql server 4 36
MS SQL BCP Extra Lines Between Records 2 19
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

810 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