Solved

SQL Server Update records

Posted on 2013-05-19
4
470 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 41

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 60

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

734 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