I got like 2000 rows of data, when I do select statement I can narrow my query but I cant change any value, as I have to change 50 columns, I dont want to use Update Command as then because values I have to update for each row is unique.
Anyone knows any easier way of selecting data using select command and then edit it.
EDIT
I just went to SQL Management studio, clicked on DB I am working on then find the table, I right clicked on it and then it says “Select top 1000 rows” so Now I can see the query and the data, I added “Where” into query and got what I wanted, but I cant modify the table rows below :S
*Edit 2 *
Or I can develop a Utility that will take Table Name , Column Name and its New value and simply updates it 🙂
You modify data using an
UPDATEstatement (with aWHEREclause) in a query window. While Management Studio has a feature called “Edit Top n Rows” that doesn’t mean it’s a good idea to use it – there are several behavioral bugs that are still unresolved even in the SQL Server 2012 version, and it can also place unnecessary and prohibitive locks on the underlying table.I know it’s not the answer you want to hear, but please become comfortable with proper DML commands. The documentation for
UPDATEis found here:http://msdn.microsoft.com/en-us/library/ms177523(v=sql.100).aspx
The long and short of it, IMHO: If you can identify the rows you want to update by using a
SELECTwith aWHEREclause, you can also write anUPDATEquery using the sameWHEREclause.