Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 change table definition

Author  Topic 

joelseverich
Starting Member

34 Posts

Posted - 2009-01-07 : 14:47:33
Hi everyone.
Is there a way to change the table definition? ex. I have a column Col20 Decimal(18,2) and I want to chage the value to Decimal(18,4).

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 14:48:49
ALTER TABLE Table1 ALTER COLUMN Col20 DECIMAL(18, 4) --NULL or NOT NULL

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

joelseverich
Starting Member

34 Posts

Posted - 2009-01-07 : 15:06:36
IT WORKS PERFECTLY, THANKS.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-07 : 15:07:53
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -