[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

varchar to text

Posted on 2010-09-07
4
Medium Priority
?
387 Views
Last Modified: 2012-05-10
alter datatype
varchar to text
0
Comment
Question by:rgb192
4 Comments
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 33622333
If you are using SQL 2005, why would you want to do that?  You are better off using varchar(max) than text...
0
 
LVL 19

Accepted Solution

by:
Bhavesh Shah earned 2000 total points
ID: 33624625
alter table <<tableName>>
alter column <<ColumnName>> varchar(max)
0
 
LVL 58

Expert Comment

by:cyberkiwi
ID: 33625594
create table testtbl (vc varchar(1000))
GO
alter table testtbl alter column vc text
GO
0
 

Author Closing Comment

by:rgb192
ID: 33628392
thanks
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are some very powerful Dynamic Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a di…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question