About 51 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 to change column datatype in SQL Server database without losing …

    Feb 27, 2011 · I have SQL Server database and I just realized that I can change the type of one of the columns from int to bool. How can I do that without losing the data that is already entered into that …

  3. Changing the data type of a column in Oracle - Stack Overflow

    You can't modify the data type of a table if you have some amount of records already present in the table. You have to empty the table records of the column (you want to modify the data type) first and …

  4. sql - Modifying a column type with data, without deleting the data ...

    May 18, 2012 · I was under the impression I cannot just alter the column type? Is the best method to create a temp column, "column2", transfer the data to this column, from the column with the …

  5. Is it possible to change the datatype of a column in a view?

    Mar 2, 2016 · You can't dictate the data type for the output column of a view. The best you can do is as @buckley suggested - use CAST or CONVERT to force an explicit data type inline in the view definition.

  6. sql server - How to change the data type of a column without …

    Jan 3, 2009 · I have a column which has a datatype : datetime. But now i want to convert it to datatype varchar. Can i alter the datatype without droppping the column? If yes, then please explain how?

  7. How to alter a column's data type in a PostgreSQL table?

    Aug 23, 2015 · Entering the following command into a PostgreSQL interactive terminal results in an error: ALTER TABLE tbl_name ALTER COLUMN col_name varchar (11); What is the correct …

  8. How do I alter the precision of a decimal column in Microsoft SQL ...

    Sep 23, 2008 · In my case I needed to fix a calculated column without the designer wanting to drop and create the original table, and one my column happened to be a DECIMAL (18, 2) and it refused to let …

  9. Altering column size in SQL Server - Stack Overflow

    Apr 13, 2012 · Right-click the table you want to modify --> Select "Design" --> Change the value in the "Data Type" column as shown in the following image: Then Save to complete the change to the table …

  10. sql server - How to change data type of a column in an SQL table from ...

    How to change data type of a column in an SQL table from integer to decimal Asked 11 years, 1 month ago Modified 4 years, 5 months ago Viewed 117k times