SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Query to Change increase the size of a field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

joshymraj
Starting Member

India
5 Posts

Posted - 04/11/2007 :  11:54:32  Show Profile  Send joshymraj an AOL message  Send joshymraj a Yahoo! Message  Reply with Quote
Hi all,
I tried to change the size of a field of my table using the query :-

ALTER TABLE test MODIFY id varchar(50)

Initially the size of id was set to 30 .Is there any other way or any error in my query.Please help me soon.



joshymraj

dinakar
Flowing Fount of Yak Knowledge

USA
2507 Posts

Posted - 04/11/2007 :  12:01:33  Show Profile  Visit dinakar's Homepage  Reply with Quote
ALTER TABLE test ALTER COLUMN [Id] varchar(50)



************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

joshymraj
Starting Member

India
5 Posts

Posted - 04/11/2007 :  12:12:44  Show Profile  Send joshymraj an AOL message  Send joshymraj a Yahoo! Message  Reply with Quote
Got it.Thank you dinakar.

joshymraj
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000