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
 Changing colum properties
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dk
Starting Member

Croatia
35 Posts

Posted - 01/29/2009 :  04:34:20  Show Profile  Reply with Quote
I am wondering can I just change the length of the varchar colum to new value in my database without any worries?

bklr
Flowing Fount of Yak Knowledge

India
1693 Posts

Posted - 01/29/2009 :  04:37:56  Show Profile  Reply with Quote
u can alter varchar column length

alter table tablename alter column columnname varchar(expected length)

Edited by - bklr on 01/29/2009 04:40:43
Go to Top of Page

AvanthaSiriwardana
Yak Posting Veteran

Sri Lanka
78 Posts

Posted - 01/29/2009 :  05:04:57  Show Profile  Send AvanthaSiriwardana a Yahoo! Message  Reply with Quote
Right click on the table then modify and enter the desired value you want in Length property.

Avantha Siriwardana
Go to Top of Page

dk
Starting Member

Croatia
35 Posts

Posted - 01/29/2009 :  05:14:43  Show Profile  Reply with Quote
Thanks. I did it.
Go to Top of Page

bklr
Flowing Fount of Yak Knowledge

India
1693 Posts

Posted - 01/29/2009 :  05:15:14  Show Profile  Reply with Quote
ur welcome
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.06 seconds. Powered By: Snitz Forums 2000