Solved

varchar to text

Posted on 2010-09-07
4
354 Views
Last Modified: 2012-05-10
alter datatype
varchar to text
0
Comment
Question by:rgb192
4 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
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 500 total points
Comment Utility
alter table <<tableName>>
alter column <<ColumnName>> varchar(max)
0
 
LVL 58

Expert Comment

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

Author Closing Comment

by:rgb192
Comment Utility
thanks
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now