How to change the data type of an existing column with "alter table" statements in ms sql server?
Answer / Prashant Srivastava
To change the data type of an existing column using the ALTER TABLE statement in MS SQL Server, you can use the following syntax:nn```sqlnALTER TABLE TableNamenALTER COLUMN ColumnName datatype;n``` Replace `TableName` with your table name and `ColumnName` with the name of the column you want to change. Replace `datatype` with the new data type for the column.n
| Is This Answer Correct ? | 0 Yes | 0 No |
What is replication and database mirroring?
What is field with example?
How to delete a database in ms sql server?
What is a data source or ds? : sql server analysis services, ssas
What are the source of constraints?
What is the significance of null value and why should we avoid permitting null values?
What is data mart? : sql server analysis services, ssas
Why use sub query in sql server and list out types of sub queries?
Comment,Datatypes are unlimited
What are user defined datatypes and when you should go for them?
Can we add an identity column to decimal datatype?
WHICH IS THE BEST INSTITUTE IN HYD FOR "ORACLE"?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)