Top "Alter-column" questions

Alter column is a part of sql's Alter table statement used to change an existing column in a table.

Altering a column: null to not null

I have a table that has several nullable integer columns. This is undesirable for several reasons, so I am looking …

sql-server tsql null alter-table alter-column
Alter column, add default constraint

I have a table and one of the columns is "Date" of type datetime. We decided to add a default …

sql-server sql-server-2008 tsql alter-table alter-column
How to ALTER multiple columns at once in SQL Server

I need to ALTER the data types of several columns in a table. For a single column, the following works …

sql-server tsql alter-column
How to alter a column's data type in a PostgreSQL table?

Entering the following command into a PostgreSQL interactive terminal results in an error: ALTER TABLE tbl_name ALTER COLUMN col_…

sql postgresql psql alter-table alter-column
Change a Nullable column to NOT NULL with Default Value

I came across an old table today with a datetime column called 'Created' which allows nulls. Now, I'd want to …

sql sql-server alter-table alter-column
ALTER TABLE on dependent column

I am trying to alter column datatype of a primary key to tinyint from int.This column is a foreign …

sql-server-2008 alter-table alter-column
When increasing the size of VARCHAR column on a large table could there be any problems?

I'm using SQL Server 2008 and I need to make a VARCHAR field bigger, from (200 to 1200) on a table with about 500…

sql-server sql-server-2008 varchar alter-column
Change a column to not allow nulls

So I want to change a column in my SQL Server database to not allow nulls, but I keep getting …

sql-server null alter-column
SQL: ALTER COLUMN to shorter CHAR(n) type

I'm working with MS SQL SERVER 2003. I want to change a column in one of my tables to have fewer …

sql alter-table alter-column
SQL SET DEFAULT not working in MS Access

Possible Duplicate: DEFAULT clause in ALTER TABLE statement resulting in syntax error I am trying to execute the following statement …

sql ms-access default alter-table alter-column