About 53 results
Open links in new tab
  1. How do I rename a column in a database table using SQL?

    Oct 6, 2008 · 155 If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any …

  2. Rename column in SQL Server - Stack Overflow

    Dec 18, 2015 · You can rename a column using a CHANGE old_col_name new_col_name column_definition clause. To do so, specify the old and new column names and the definition …

  3. How to alter column name in Sql server - Stack Overflow

    3 There are few possible ways of doing this in MSSQL server. Select the table abn list the columns by click on the + in the table columns. Then right click and rename the column name …

  4. Rename column SQL Server 2008 - Stack Overflow

    Apr 30, 2013 · I am using SQL Server 2008 and Navicat. I need to rename a column in a table using SQL. ALTER TABLE table_name RENAME COLUMN old_name to new_name; This …

  5. How can I rename my column in a SQL table? - Stack Overflow

    Jun 17, 2010 · 4 You can't. You can create a new column in the table, using the new name, copy the contents of the old column into the new column, and then drop the old column (that's two …

  6. 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?

  7. how to rename column name with T-SQL - Stack Overflow

    Feb 20, 2012 · I need help with SQL Server Table Column. I´m trying to rename Column Name, but this doesn't work.

  8. sql server - ¿Cómo renombrar columnas de una tabla SQL …

    Véase: SQL SERVER – How to Rename a Column Name or Table Name y también: SQL SERVER - Alter table statement Edit: Prueba la siguiente consulta, añadiendo paréntesis …

  9. Change primary key column in Microsoft SQL Server

    SELECT * from history WHERE id is NULL <---- This shows 0 results ALTER TABLE history ALTER COLUMN id int NOT NULL ALTER TABLE history ADD PRIMARY KEY (id) ALTER …

  10. Can I create a named default constraint in an add column …

    In SQL Server, I have a new column on a table: ALTER TABLE t_tableName ADD newColumn NOT NULL This fails because I specify NOT NULL without specifying a default constraint.