About 515,000 results
Open links in new tab
  1. How do you change the datatype of a column in T-SQL Server?

    Mar 9, 2009 · I am trying to change a column from a varchar(50) to a nvarchar(200). What is the SQL command to alter this table?

  2. How can I do an UPDATE statement with JOIN in SQL Server?

    This was an example, but the point is as Eric said in How can I do an UPDATE statement with JOIN in SQL Server?. You need to add an UPDATE statement at first with the full address of …

  3. How to update Identity Column in SQL Server? - Stack Overflow

    Oct 3, 2013 · You can not update identity column. SQL Server does not allow to update the identity column unlike what you can do with other columns with an update statement. Although …

  4. Altering column size in SQL Server - Stack Overflow

    Apr 13, 2012 · How to change the column size of the salary column in the employee table from numeric(18,0) to numeric(22,5)

  5. Remove Trailing Spaces and Update in Columns in SQL Server

    I have trailing spaces in a column in a SQL Server table called Company Name. All data in this column has trailing spaces. I want to remove all those, and I want to have the data without any …

  6. SQL Update from One Table to Another Based on a ID Match

    Oct 22, 2008 · The arguments for using MERGE (including those in the post from sqlblog.com linked above) might be compelling, but one thing to consider might be that according to …

  7. if condition in sql server update query - Stack Overflow

    May 21, 2017 · I have a SQL server table in which there are 2 columns that I want to update either of their values according to a flag sent to the stored procedure along with the new value, …

  8. sql server - Update multiple columns in SQL - Stack Overflow

    Jan 31, 2012 · 262 Is there a way to update multiple columns in SQL server the same way an insert statement is used? Something like:

  9. Update table column values based on conditional logic

    I have table like this: name | salary Tom | 10000 Mary | 20000 Jack | 30000 Lisa | 40000 Jake | 60000 I need an update query to update the salary column depending on the values it …

  10. Column update - SQL UPDATE statement - Stack Overflow

    May 10, 2022 · I have a column where it stores a reference the reference is usually 30 alphanumeric values The column is set as an nvarchar (30). Id like to update this to nvarchar …